Skip to content

Commit 3f6b3cf

Browse files
yskripachovmattn
authored andcommitted
fix-216
1 parent 395c63e commit 3f6b3cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/lsp/ui/vim.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ function! s:apply_text_edits(uri, text_edits) abort
490490
let l:was_view = winsaveview()
491491

492492
set paste
493-
set selection=inclusive
493+
set selection=exclusive
494494
set virtualedit=onemore
495495

496496
execute l:cmd
@@ -640,7 +640,7 @@ function! s:generate_move_end_cmd(line_pos, character_pos) abort
640640
if a:character_pos > 0
641641
let l:result .= printf('%dl', a:character_pos) " move right until the character
642642
else
643-
let l:result .= '$' " move most right
643+
let l:result = printf('%dG$', a:line_pos - 1) " move most right
644644
endif
645645
return l:result
646646
endfunction

0 commit comments

Comments
 (0)