зеркало из https://github.com/github/ruby.git
[ruby/reline] Add `kill-word` and `backward-kill-word` keymapping
support. (https://github.com/ruby/reline/pull/570) Fix it https://github.com/ruby/reline/issues/558 https://github.com/ruby/reline/commit/0f8000443e Co-authored-by: Stan Lo <stan001212@gmail.com>
This commit is contained in:
Родитель
e78af6b82d
Коммит
ccca097cb5
|
@ -2696,6 +2696,7 @@ class Reline::LineEditor
|
|||
@cursor_max -= width
|
||||
end
|
||||
end
|
||||
alias_method :kill_word, :em_delete_next_word
|
||||
|
||||
private def ed_delete_prev_word(key)
|
||||
if @byte_pointer > 0
|
||||
|
@ -2707,6 +2708,7 @@ class Reline::LineEditor
|
|||
@cursor_max -= width
|
||||
end
|
||||
end
|
||||
alias_method :backward_kill_word, :ed_delete_prev_word
|
||||
|
||||
private def ed_transpose_chars(key)
|
||||
if @byte_pointer > 0
|
||||
|
|
Загрузка…
Ссылка в новой задаче