1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

The ed_move_to_beg is different from vi_first_print

This commit is contained in:
aycabta 2019-06-03 03:29:19 +09:00
parent 65fdb90325
commit 3428922437
5 changed files with 36 additions and 4 deletions

View file

@ -407,7 +407,7 @@ class Reline::Unicode
[byte_size, width]
end
def self.ed_move_to_begin(line)
def self.vi_first_print(line)
width = 0
byte_size = 0
while (line.bytesize - 1) > byte_size