mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
^D on non-empty line in vi mode behaves like Enter
This commit is contained in:
parent
8e6d51e09a
commit
622e47a1db
2 changed files with 14 additions and 9 deletions
|
@ -1938,9 +1938,11 @@ class Reline::LineEditor
|
|||
@eof = true
|
||||
finish
|
||||
else
|
||||
# TODO: list
|
||||
ed_newline(key)
|
||||
end
|
||||
end
|
||||
alias_method :vi_end_of_transmission, :vi_list_or_eof
|
||||
alias_method :vi_eof_maybe, :vi_list_or_eof
|
||||
|
||||
private def ed_delete_next_char(key, arg: 1)
|
||||
byte_size = Reline::Unicode.get_next_mbchar_size(@line, @byte_pointer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue