- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 5.7k
 
Closed
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
To reproduce:
Ctrl-Rto enter reverse mode- Paste som gibberish
 - Press 
Ctrl-Ragain 
': verse-i-search)` sdgfdfgdfgfdgfdgfd        ┌ Error: Error in the keymap
│   exception =
│    BoundsError: attempt to access ""
│      at index [0]
│    Stacktrace:
│     [1] prevind(::String, ::Int64, ::Int64) at ./strings/basic.jl:460
│     [2] prevind(::String, ::Int64) at ./strings/basic.jl:455
│     [3] history_search(::REPL.REPLHistoryProvider, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool, ::Bool) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:631
│     [4] history_next_result(::REPL.LineEdit.MIState, ::REPL.LineEdit.SearchState) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:1565
│     [5] (::getfield(REPL.LineEdit, Symbol("##44#75")))(::Any, ::Any, ::Any) at /Users/kristoffer/julia/usr/share/julia/stdlib/v1.1/REPL/src/LineEdit.jl:1777
...
The paste is not necessary, you can also type something that doesn't make any result in the reverse search come up and trigger the same behavior. Pasting is easier though.
Metadata
Metadata
Assignees
Labels
REPLJulia's REPL (Read Eval Print Loop)Julia's REPL (Read Eval Print Loop)bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior