From f9332ad8333bffd9a0d34d5c5e10a2f7323cbde5 Mon Sep 17 00:00:00 2001 From: Adam Cammack Date: Fri, 13 Sep 2019 11:03:34 -0500 Subject: [PATCH] Fix previous history in vi_insert mode --- lib/reline/line_editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)