We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0baa09 commit 74d5ed2Copy full SHA for 74d5ed2
autoload/lsp/utils/text_edit.vim
@@ -217,9 +217,9 @@ endfunction
217
218
function! s:generate_move_end_cmd(line_pos, character_pos) abort
219
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
+ if a:character_pos > 1
221
let l:result .= printf('%dl', a:character_pos) " move right until the character
222
- else
+ elseif a:character_pos == 0
223
let l:result = printf('%dG$', a:line_pos - 1) " move most right
224
endif
225
return l:result
0 commit comments