ruby-changes:57764
From: Adam <ko1@a...>
Date: Tue, 17 Sep 2019 15:15:43 +0900 (JST)
Subject: [ruby-changes:57764] f9332ad833 (master): Fix previous history in vi_insert mode
https://git.ruby-lang.org/ruby.git/commit/?id=f9332ad833 From f9332ad8333bffd9a0d34d5c5e10a2f7323cbde5 Mon Sep 17 00:00:00 2001 From: Adam Cammack <adam_cammack@r...> Date: Fri, 13 Sep 2019 11:03:34 -0500 Subject: Fix previous history in vi_insert mode 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 https://github.com/ruby/ruby/blob/trunk/lib/reline/line_editor.rb#L1280 @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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/