ruby-changes:57765
From: Adam <ko1@a...>
Date: Tue, 17 Sep 2019 15:15:43 +0900 (JST)
Subject: [ruby-changes:57765] a3533bc904 (master): Fix history navigation in vi_insert mode
https://git.ruby-lang.org/ruby.git/commit/?id=a3533bc904 From a3533bc90493cf84e6c9d6cc0356bbbd694cd6da Mon Sep 17 00:00:00 2001 From: Adam Cammack <adam_cammack@r...> Date: Sat, 7 Sep 2019 15:56:29 -0500 Subject: Fix history navigation in vi_insert mode diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 75281c6..884627b 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1327,7 +1327,7 @@ class Reline::LineEditor https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1327 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/