summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Cammack <adam_cammack@rapid7.com>2019-09-13 16:03:34 (GMT)
committeraycabta <aycabta@gmail.com>2019-09-17 06:14:38 (GMT)
commitf9332ad8333bffd9a0d34d5c5e10a2f7323cbde5 (patch)
tree29741849a4b4c3cc71f4c5415126850327891716
parenta3533bc90493cf84e6c9d6cc0356bbbd694cd6da (diff)
Fix previous history in vi_insert mode
-rw-r--r--lib/reline/line_editor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 884627b..fdeedfc 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)