autoload/lsp/textedit.vim | 3 --- diff --git a/autoload/lsp/textedit.vim b/autoload/lsp/textedit.vim index 0ea69fb911db8270ecefa21ec23b3310bd079b68..2fe2ad0208e8a14462d741f953a827d129973e32 100644 --- a/autoload/lsp/textedit.vim +++ b/autoload/lsp/textedit.vim @@ -213,7 +213,6 @@ if !workspaceEdit->has_key('changes') return endif - var save_cursor: list = getcurpos() for [uri, changes] in workspaceEdit.changes->items() var bnr: number = util.LspUriToBufnr(uri) if bnr == 0 @@ -224,8 +223,6 @@ # interface TextEdit ApplyTextEdits(bnr, changes) endfor - # Restore the cursor to the location before the edit - save_cursor->setpos('.') enddef # vim: tabstop=8 shiftwidth=2 softtabstop=2