Skip to content

Commit

Permalink
multispaces defaults to false, and de-activate in search-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Jul 27, 2017
1 parent bb4a964 commit ff6d789
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/repl/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -475,15 +475,15 @@ function edit_insert(buf::IOBuffer, c)
end
end

function edit_backspace(s::PromptState, multispaces::Bool=true)
function edit_backspace(s::PromptState, multispaces::Bool=false)
if edit_backspace(s.input_buffer, multispaces)
refresh_line(s)
else
beep(terminal(s))
end
end

function edit_backspace(buf::IOBuffer, multispaces::Bool=true)
function edit_backspace(buf::IOBuffer, multispaces::Bool=false)
oldpos = position(buf)
if oldpos > 0
c = char_move_left(buf)
Expand Down Expand Up @@ -1373,7 +1373,7 @@ AnyDict(
end,
'\n' => KeyAlias('\r'),
# Backspace/^H
'\b' => (s,o...)->edit_backspace(s),
'\b' => (s,o...)->edit_backspace(s, true),
127 => KeyAlias('\b'),
# Meta Backspace
"\e\b" => (s,o...)->edit_delete_prev_word(s),
Expand Down

0 comments on commit ff6d789

Please sign in to comment.