Skip to content

Commit

Permalink
Changed condition for sync 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielViberg committed Aug 23, 2024
1 parent 37e4fa0 commit 74c8db1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/lsp/lspserver.vim
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def TextdocDidChange(lspserver: dict<any>, bnr: number, start: number,
endif

if lspserver.caps.textDocumentSync == 2 &&
(start != 0 || end != 0 || added != 0)
!(start == 0 && end == 0 && added == 0)
var startpos = added < 0 ? start - 1 : start - 2
var lines: string = added < 0 ? '' : bnr->getbufline(start - 1, end - 1 + added)->join("\n") .. "\n"
var range: dict<dict<number>> = {
Expand Down

0 comments on commit 74c8db1

Please sign in to comment.