summaryrefslogtreecommitdiffstatshomepage
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
authorgeril07 <62308020+geril07@users.noreply.github.com>2026-04-23 19:01:44 +0300
committerGitHub <noreply@github.com>2026-04-23 16:01:44 +0000
commit790a8be5f306a28ca8e96c2ae3fa3b465ae3718f (patch)
treeb1dfbfdcefbc5465def286bc1240134bc6b53e44 /src/nvim/lua/executor.c
parentf8c94bb8cf470ff875ac6dc2e962cfb4b9cef0c2 (diff)
fix(lsp): malformed edit if apply_text_edits() is called twice #34954
Problem: Use vim.lsp.util.apply_text_edits to re-apply the same textedit causes an incorrect edit, because apply_text_edits silently modifies the parameter. Solution: - Avoid changing `text_edit._index`. - Document this fun feature. Helped-by: Riley Bruins <ribru17@hotmail.com> Helped-by: Yi Ming <ofseed@foxmail.com> Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'src/nvim/lua/executor.c')
0 files changed, 0 insertions, 0 deletions