diff options
author | Otávio Schwanck dos Santos <[email protected]> | 2022-09-20 14:40:48 +0100 |
---|---|---|
committer | git <[email protected]> | 2022-09-22 22:28:38 +0900 |
commit | 696e8914b74cd10047917ce677b1872ae1f04660 (patch) | |
tree | 51bd8a34ff8fdb36ee31ba0db983cfaa08a14782 /lib/reline/line_editor.rb | |
parent | 9d19d910c077d40a1d60d36baa4458926df857d4 (diff) |
[ruby/reline] PR changes
https://github.com/ruby/reline/commit/e8e8d81f47
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r-- | lib/reline/line_editor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 9703a8c9f3..8153aaba05 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1430,7 +1430,7 @@ class Reline::LineEditor if @waiting_operator_proc if VI_MOTIONS.include?(method_symbol) old_cursor, old_byte_pointer = @cursor, @byte_pointer - @vi_arg = @waiting_operator_vi_arg if (@waiting_operator_vi_arg || 1) > 1 + @vi_arg = @waiting_operator_vi_arg if @waiting_operator_vi_arg&.> 1 block.(true) unless @waiting_proc cursor_diff, byte_pointer_diff = @cursor - old_cursor, @byte_pointer - old_byte_pointer |