A RetroSearch Logo

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

Search Query:

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

respect all of 'fixeol', 'eol', and 'binary' applying edits… · neovim/neovim@d477788 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -480,7 +480,7 @@ function M.apply_text_edits(text_edits, bufnr, offset_encoding)

480 480 481 481

-- Remove final line if needed

482 482

local fix_eol = has_eol_text_edit

483 -

fix_eol = fix_eol and api.nvim_buf_get_option(bufnr, 'fixeol')

483 +

fix_eol = fix_eol and (api.nvim_buf_get_option(bufnr, 'eol') or (api.nvim_buf_get_option(bufnr, 'fixeol') and not api.nvim_buf_get_option('binary')))

484 484

fix_eol = fix_eol and get_line(bufnr, max - 1) == ''

485 485

if fix_eol then

486 486

vim.api.nvim_buf_set_lines(bufnr, -2, -1, false, {})

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