diff options
author | Adam Cammack <adam_cammack@rapid7.com> | 2019-09-13 11:03:34 -0500 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-09-17 15:14:38 +0900 |
commit | f9332ad8333bffd9a0d34d5c5e10a2f7323cbde5 (patch) | |
tree | 29741849a4b4c3cc71f4c5415126850327891716 /lib | |
parent | a3533bc90493cf84e6c9d6cc0356bbbd694cd6da (diff) | |
download | ruby-f9332ad8333bffd9a0d34d5c5e10a2f7323cbde5.tar.gz |
Fix previous history in vi_insert mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 884627b73b..fdeedfc81c 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1280,7 +1280,7 @@ class Reline::LineEditor @line = Reline::HISTORY[@history_pointer] end end - if @config.editing_mode_is?(:emacs) + if @config.editing_mode_is?(:emacs, :vi_insert) @cursor_max = @cursor = calculate_width(@line) @byte_pointer = @line.bytesize elsif @config.editing_mode_is?(:vi_command) |