diff options
author | aycabta <aycabta@gmail.com> | 2019-12-25 09:52:25 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-12-25 09:52:37 +0900 |
commit | ed5b4bae6a4f991a0c5299581bd0b137a98d3723 (patch) | |
tree | 41c2bcb35e8b592c7c3ccf758a3103279246c8e9 /lib/reline/line_editor.rb | |
parent | 03c504ac59a2bf78bab925379e93184d81296e96 (diff) |
The behavior of vi_end_of_transmission should be the same of vi_list_or_eof
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index d668da7ad7..10996e4c31 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1916,18 +1916,6 @@ class Reline::LineEditor private def vi_yank(key) end - private def vi_end_of_transmission(key) - if @line.empty? - @line = nil - if @buffer_of_lines.size > 1 - scroll_down(@highest_in_all - @first_line_started_from) - end - Reline::IOGate.move_cursor_column(0) - @eof = true - finish - end - end - private def vi_list_or_eof(key) if (not @is_multiline and @line.empty?) or (@is_multiline and @line.empty? and @buffer_of_lines.size == 1) @line = nil |