Skip to content

Commit

Permalink
REPL: fix "delete previous word" in search mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Sep 10, 2017
1 parent bee2f92 commit 553fcdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions base/repl/LineEdit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1517,12 +1517,12 @@ function setup_search_keymap(hp)
update_display_buffer(s, data) : beep(s)),
127 => KeyAlias('\b'),
# Meta Backspace
"\e\b" => (s,data,c)->(edit_delete_prev_word(data.query_buffer) ?
update_display_buffer(s, data) : beep(s)),
"\e\b" => (s,data,c)->(isempty(edit_delete_prev_word(data.query_buffer)) ?
beep(s) : update_display_buffer(s, data)),
"\e\x7f" => "\e\b",
# Word erase to whitespace
"^W" => (s,data,c)->(edit_werase(data.query_buffer) ?
update_display_buffer(s, data) : beep(s)),
"^W" => (s,data,c)->(isempty(edit_werase(data.query_buffer)) ?
beep(s) : update_display_buffer(s, data)),
# ^C and ^D
"^C" => (s,data,c)->(edit_clear(data.query_buffer);
edit_clear(data.response_buffer);
Expand Down

0 comments on commit 553fcdd

Please sign in to comment.