A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/b72aae85fd980b55a695543c1c34e8f0bf584cc4 below:

always split text edits on \r, \r\n, and \n (#17087) · neovim/neovim@b72aae8 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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