Skip to content

Commit 74d5ed2

Browse files
mattnDima Chechetkin
authored andcommitted
1 parent e0baa09 commit 74d5ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/lsp/utils/text_edit.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ endfunction
217217

218218
function! s:generate_move_end_cmd(line_pos, character_pos) abort
219219
let l:result = printf('%dG0', a:line_pos) " move the line and set to the cursor at the beginning
220-
if a:character_pos > 0
220+
if a:character_pos > 1
221221
let l:result .= printf('%dl', a:character_pos) " move right until the character
222-
else
222+
elseif a:character_pos == 0
223223
let l:result = printf('%dG$', a:line_pos - 1) " move most right
224224
endif
225225
return l:result

0 commit comments

Comments
 (0)