File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ describe("can do various file types", function()
232
232
write_file (" foo" )
233
233
vim .api .nvim_win_set_cursor (0 , { 1 , 0 })
234
234
feedkeys (" dQp" )
235
+ feedkeys (" <CR>" )
235
236
assert .are .same (
236
237
" Don't have debugprint configuration for filetype foo" ,
237
238
notify_message
@@ -633,7 +634,7 @@ describe("can handle treesitter identifiers", function()
633
634
634
635
local filename = write_file (" lua" )
635
636
vim .api .nvim_win_set_cursor (0 , { 2 , 6 })
636
- feedkeys (" dQp" )
637
+ feedkeys (" dQp<CR> " )
637
638
638
639
check_lines ({
639
640
" function x() {" ,
@@ -642,7 +643,7 @@ describe("can handle treesitter identifiers", function()
642
643
" end" ,
643
644
})
644
645
645
- assert .are .same (vim .api .nvim_win_get_cursor (0 ), { 2 , 6 })
646
+ assert .are .same (vim .api .nvim_win_get_cursor (0 ), { 3 , 0 })
646
647
end )
647
648
648
649
it (" non-identifier" , function ()
You can’t perform that action at this time.
0 commit comments