+3
-0
lines changedFilter options
+3
-0
lines changed Original file line number Diff line number Diff line change
@@ -422,6 +422,9 @@ function M.apply_text_edits(text_edits, bufnr, offset_encoding)
422
422
local is_cursor_fixed = false
423
423
local has_eol_text_edit = false
424
424
for _, text_edit in ipairs(text_edits) do
425
+
-- Normalize line ending
426
+
text_edit.newText, _ = string.gsub(text_edit.newText, '\r\n?', '\n')
427
+
425
428
-- Convert from LSP style ranges to Neovim style ranges.
426
429
local e = {
427
430
start_row = text_edit.range.start.line,
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4