aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reline/line_editor.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-06-03 03:29:19 +0900
committeraycabta <aycabta@gmail.com>2019-06-03 03:29:34 +0900
commit3428922437a31b644cffcabd33fd9353e68f88c8 (patch)
treeb3bb1a594ec39d55dcf42a1d1cf30c2cadc7285b /lib/reline/line_editor.rb
parent65fdb903250f37add2f83b81a5600d0c3e417427 (diff)
downloadruby-3428922437a31b644cffcabd33fd9353e68f88c8.tar.gz
The ed_move_to_beg is different from vi_first_print
Diffstat (limited to 'lib/reline/line_editor.rb')
-rw-r--r--lib/reline/line_editor.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb
index f3c24d9e02..6446879312 100644
--- a/lib/reline/line_editor.rb
+++ b/lib/reline/line_editor.rb
@@ -1016,8 +1016,12 @@ class Reline::LineEditor
ed_prev_char(key, arg: arg) if arg > 0
end
+ private def vi_first_print(key)
+ @byte_pointer, @cursor = Reline::Unicode.vi_first_print(@line)
+ end
+
private def ed_move_to_beg(key)
- @byte_pointer, @cursor = Reline::Unicode.ed_move_to_begin(@line)
+ @byte_pointer = @cursor = 0
end
private def ed_move_to_end(key)