diff options
| author | bfredl <bjorn.linse@gmail.com> | 2026-09-17 11:58:37 +0200 |
|---|---|---|
| committer | bfredl <bjorn.linse@gmail.com> | 2026-09-22 12:31:48 +0200 |
| commit | 6be4cd6560d17573f9ef9910bae4360cf96d760f (patch) | |
| tree | 0bfaa2b079bdabeab610025ec9d9456c61dbd22c /test/functional/api/vim_spec.lua | |
| parent | ee5b7ef669956831abfa8c37a5b454abaaf07bcc (diff) | |
| download | rneovim-6be4cd6560d17573f9ef9910bae4360cf96d760f.tar.gz rneovim-6be4cd6560d17573f9ef9910bae4360cf96d760f.tar.bz2 rneovim-6be4cd6560d17573f9ef9910bae4360cf96d760f.zip | |
refactor(charset)!: delete 'isprint' and cleanup 'iskeyword' and friends
In the `enc=utf-8` only world, the 'isprint' option is quite obsolete.
The function is only consulted for decoded U+0080 to U+00FF chars
whose printability is defined by the unicode charset, just like
higher codepoints. Meanwhile, invalid `\x80` to `\xFF` bytes are always
unprintable.
Disentangle 'iskeyword', 'isfname' and 'isident' from each other by
giving them all separate bitsets. Now these can be updated individually.
These updaters can back out of errors gracefully, no need for extra
panic logic in option[str].c to restore partially updated chartabs.
Diffstat (limited to 'test/functional/api/vim_spec.lua')
| -rw-r--r-- | test/functional/api/vim_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 2e9bb1e1ec..e282dea21d 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -2407,7 +2407,7 @@ describe('API', function() { 'isident', '256', 'E474:' }, { 'iskeyword', '256', 'E474:' }, { 'isfname', '256', 'E474:' }, - { 'isprint', '256', 'E474:' }, + { 'isprint', '256', 'E519:' }, { 'spelllang', 'en/gb', 'E474:' }, { 'spellfile', 'words.txt', 'E474:' }, { 'complete', 'x', 'E539:' }, |