aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-08-25 12:23:05 +0100
committerLewis Russell <me@lewisr.dev>2023-08-27 19:27:25 +0100
commitabb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f (patch)
tree2ccdeaa0e098efe92d32a5c81fd5263468b9da40 /test
parent63802a1dbf0e698b5a8a48bfcb247698a7e07293 (diff)
downloadrneovim-abb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f.tar.gz
rneovim-abb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f.tar.bz2
rneovim-abb8c2c453d1e084f8ab3e9bbaa8b27515c81a9f.zip
fix(editorconfig): do not set 'endofline'
Problem: 'endofline' can be used to detect if a file ends of <EOL>, however editorconfig can break this. Solution: Set 'endofline' during BufWritePre Fixes: #24869
Diffstat (limited to 'test')
-rw-r--r--test/functional/plugin/editorconfig_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/plugin/editorconfig_spec.lua b/test/functional/plugin/editorconfig_spec.lua
index 5e38c03b56..ac78003a8c 100644
--- a/test/functional/plugin/editorconfig_spec.lua
+++ b/test/functional/plugin/editorconfig_spec.lua
@@ -160,8 +160,8 @@ describe('editorconfig', function()
end)
it('sets newline options', function()
- test_case('with_newline.txt', { fixendofline = true, endofline = true })
- test_case('without_newline.txt', { fixendofline = false, endofline = false })
+ test_case('with_newline.txt', { fixendofline = true })
+ test_case('without_newline.txt', { fixendofline = false })
end)
it('respects trim_trailing_whitespace', function()