summaryrefslogtreecommitdiff
path: root/lib/reline
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-11-02 15:22:11 +0900
committeraycabta <aycabta@gmail.com>2020-12-05 02:58:58 +0900
commit92b22db6a7d943328ef2776fb3b6a6924fc8b496 (patch)
treeb2ceba8ebef86c9fc18eddd9dd5d3eb0a1e23a1b /lib/reline
parentfaf8f216be034a575350c7f3387992930b224bfc (diff)
[ruby/reline] Unimplemented vi command should be no-op
https://github.com/ruby/reline/commit/abc90e6867
Diffstat (limited to 'lib/reline')
-rw-r--r--lib/reline/line_editor.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index 17fabd175d..f6cf0c5280 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -771,7 +771,7 @@ class Reline::LineEditor
elsif method_obj
wrap_method_call(method_symbol, method_obj, key)
else
- ed_insert(key)
+ ed_insert(key) unless @config.editing_mode_is?(:vi_command)
end
@kill_ring.process
@vi_arg = nil
@@ -789,7 +789,7 @@ class Reline::LineEditor
end
@kill_ring.process
else
- ed_insert(key)
+ ed_insert(key) unless @config.editing_mode_is?(:vi_command)
end
end