File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ local function apply_item(ctx, item)
68
68
69
69
text_edits_lib .apply (item .textEdit , all_text_edits )
70
70
71
- if ctx .get_mode () ~= ' term ' then ctx . set_cursor (new_cursor ) end
71
+ ctx .set_cursor (new_cursor )
72
72
text_edits_lib .move_cursor_in_dot_repeat (offset )
73
73
end
74
74
Original file line number Diff line number Diff line change 101
101
102
102
function context .set_cursor (cursor )
103
103
local mode = context .get_mode ()
104
- if mode == ' default' then return vim .api .nvim_win_set_cursor (0 , cursor ) end
104
+ if mode == ' default' or mode == ' term ' then return vim .api .nvim_win_set_cursor (0 , cursor ) end
105
105
106
106
assert (mode == ' cmdline' , ' Unsupported mode for setting cursor: ' .. mode )
107
107
assert (cursor [1 ] == 1 , ' Cursor must be on the first line in cmdline mode' )
You can’t perform that action at this time.
0 commit comments