Skip to content

Commit

Permalink
fix(apply_text_edits): remove hack to revert text_edits order
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoP committed Jul 28, 2024
1 parent 00f7854 commit c406fc5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lua/refactoring/tasks/apply_text_edits.lua
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ local function refactor_apply_text_edits(refactor)
if ns then
preview_highlight(bufnr, ns, edit_set)
end
if vim.fn.has("nvim-0.11") == 1 then
-- HACK: because of https://github.com/neovim/neovim/pull/29212
edit_set = vim.iter(edit_set):rev():totable()
end
vim.lsp.util.apply_text_edits(edit_set, bufnr, "utf-16")
end

Expand Down

0 comments on commit c406fc5

Please sign in to comment.