File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -706,12 +706,13 @@ def editing_mode
706
706
else
707
707
old_waiting_proc = @waiting_proc
708
708
old_waiting_operator_proc = @waiting_operator_proc
709
+ current_waiting_operator_proc = @waiting_operator_proc
709
710
@waiting_proc = proc { |k |
710
711
old_cursor , old_byte_pointer = @cursor , @byte_pointer
711
712
old_waiting_proc . ( k )
712
713
cursor_diff , byte_pointer_diff = @cursor - old_cursor , @byte_pointer - old_byte_pointer
713
714
@cursor , @byte_pointer = old_cursor , old_byte_pointer
714
- @waiting_operator_proc . ( cursor_diff , byte_pointer_diff )
715
+ current_waiting_operator_proc . ( cursor_diff , byte_pointer_diff )
715
716
@waiting_operator_proc = old_waiting_operator_proc
716
717
}
717
718
end
Original file line number Diff line number Diff line change @@ -1215,6 +1215,19 @@ def test_vi_delete_meta
1215
1215
assert_line ( 'aaa ddd eee' )
1216
1216
end
1217
1217
1218
+ def test_vi_delete_meta_with_vi_next_char
1219
+ input_keys ( "aaa bbb ccc ___ ddd\C -[02w" )
1220
+ assert_byte_pointer_size ( 'aaa bbb ' )
1221
+ assert_cursor ( 8 )
1222
+ assert_cursor_max ( 19 )
1223
+ assert_line ( 'aaa bbb ccc ___ ddd' )
1224
+ input_keys ( 'df_' )
1225
+ assert_byte_pointer_size ( 'aaa bbb ' )
1226
+ assert_cursor ( 8 )
1227
+ assert_cursor_max ( 15 )
1228
+ assert_line ( 'aaa bbb ___ ddd' )
1229
+ end
1230
+
1218
1231
def test_vi_change_meta
1219
1232
input_keys ( "aaa bbb ccc ddd eee\C -[02w" )
1220
1233
assert_byte_pointer_size ( 'aaa bbb ' )
You can’t perform that action at this time.
0 commit comments