Skip to content

Commit 328ef85

Browse files
fix(nightly): Remove reversing of lsp edits
neovim/neovim#29877
1 parent 711f277 commit 328ef85

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lua/orgmode/org/mappings.lua

-5
Original file line numberDiff line numberDiff line change
@@ -698,11 +698,6 @@ function OrgMappings:meta_return(suffix)
698698
end
699699

700700
if #text_edits > 0 then
701-
-- Fix sorting for same position edits
702-
-- See: https://github.com/neovim/neovim/commit/2ce4a4d91e4abee0aab8b98c47eea9fbd4849ba6
703-
if vim.fn.has('nvim-0.11') > 0 then
704-
text_edits = utils.reverse(text_edits)
705-
end
706701
vim.lsp.util.apply_text_edits(text_edits, vim.api.nvim_get_current_buf(), constants.default_offset_encoding)
707702

708703
vim.fn.cursor(end_row + 1 + (add_empty_line and 1 or 0), 1) -- +1 for next line

0 commit comments

Comments
 (0)