+1
-1
lines changedFilter options
+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