diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-12-25 05:30:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-24 22:30:34 -0700 |
commit | 70a68dc2c5da292124e1c85732cc9228b51adfeb (patch) | |
tree | 3b963f38c46d7e3ee1f8e83b041e2db311d6ca26 /test/functional/legacy/options_spec.lua | |
parent | 0d7a97224f28cdf47d7ecc80b6d300c8c67c0b29 (diff) | |
download | rneovim-70a68dc2c5da292124e1c85732cc9228b51adfeb.tar.gz rneovim-70a68dc2c5da292124e1c85732cc9228b51adfeb.tar.bz2 rneovim-70a68dc2c5da292124e1c85732cc9228b51adfeb.zip |
fix(options): disallow empty 'fdc' and 'scl' (#16765)
Empty string values for these options aren't actually allowed, but
check_opt_strings allows empty string options.
It so happens that 'scl' handles empty string like "auto", but empty 'fdc'
causes glitchiness (win_fdccol_count returns an incorrect value).
Just disallow empty string values for these options completely.
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r-- | test/functional/legacy/options_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua index 023cdd4ae1..bd14f3bc53 100644 --- a/test/functional/legacy/options_spec.lua +++ b/test/functional/legacy/options_spec.lua @@ -83,4 +83,9 @@ describe('set', function() Press ENTER or type command to continue^ | ]]) end) + + it('foldcolumn and signcolumn to empty string is disallowed', function() + matches('E474: Invalid argument: fdc=', exc_exec('set fdc=')) + matches('E474: Invalid argument: scl=', exc_exec('set scl=')) + end) end) |