aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorAndreas Johansson <ndreas@users.noreply.github.com>2020-07-30 19:37:19 +0200
committerGitHub <noreply@github.com>2020-07-30 13:37:19 -0400
commit82bfdbfe5c4eebd98ef59b52045ffd198e7ff389 (patch)
tree01312fe8c3c9b3ca67d8832e0051ed52757989a6 /runtime/lua/vim/lsp/util.lua
parent54ff1cdd76518d88d5e530afc56a9b8c2b7633be (diff)
downloadrneovim-82bfdbfe5c4eebd98ef59b52045ffd198e7ff389.tar.gz
rneovim-82bfdbfe5c4eebd98ef59b52045ffd198e7ff389.tar.bz2
rneovim-82bfdbfe5c4eebd98ef59b52045ffd198e7ff389.zip
Revert "lsp: Fix text edits with the same start position (#12434)" (#12564)
This reverts commit 44fe8828f06a22bc9aa3617a6fd8aae447a838de.
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 5a68138f1e..d286f28d0c 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -92,7 +92,7 @@ local function sort_by_key(fn)
end
end
local edit_sort_key = sort_by_key(function(e)
- return {e.A[1], e.A[2], -e.i}
+ return {e.A[1], e.A[2], e.i}
end)
--- Position is a https://microsoft.github.io/language-server-protocol/specifications/specification-current/#position