From a3533bc90493cf84e6c9d6cc0356bbbd694cd6da Mon Sep 17 00:00:00 2001 From: Adam Cammack Date: Sat, 7 Sep 2019 15:56:29 -0500 Subject: Fix history navigation 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 75281c6c8b..884627b73b 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1327,7 +1327,7 @@ class Reline::LineEditor end end @line = '' unless @line - 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) -- cgit v1.2.3