diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-08-06 22:20:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-06 22:20:26 +0800 |
| commit | 93347a67bf913c72ab2c1ba0aa4b26cc4ba6d1a8 (patch) | |
| tree | 025422962c9114120adaf16db8241cfd4e1c8c9c /test/functional | |
| parent | 37952bf7b442cac794c4663f2e0123e7d72bc443 (diff) | |
| download | rneovim-93347a67bf913c72ab2c1ba0aa4b26cc4ba6d1a8.tar.gz rneovim-93347a67bf913c72ab2c1ba0aa4b26cc4ba6d1a8.tar.bz2 rneovim-93347a67bf913c72ab2c1ba0aa4b26cc4ba6d1a8.zip | |
fix(filetype): fix :filetype detect error with -u NONE (#29991)
:filetype detect should enable filetype detection when it hasn't been
enabled before.
Diffstat (limited to 'test/functional')
| -rw-r--r-- | test/functional/core/startup_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 45f8294b16..8d6ba9712a 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -112,6 +112,13 @@ describe('startup', function() |*2 ]]) end) + + it(':filetype detect enables filetype detection with -u NONE', function() + clear() + eq('filetype detection:OFF plugin:OFF indent:OFF', exec_capture('filetype')) + command('filetype detect') + eq('filetype detection:ON plugin:OFF indent:OFF', exec_capture('filetype')) + end) end) describe('startup', function() |