commit 965dc81f818e50b5078d4b7efa5fbb8b771560f8
parent cc6992f1ca443f4da01cb4d57159d4cef37b36b7
Author: Yochem van Rosmalen <git@yochem.nl>
Date: Mon, 18 Nov 2024 00:33:34 +0100
fix(checkhealth): disable 'listchars' #31245
Problem:
'listchars' (in particular multispace) breaks visual heading due to
`Whitespace` highlight group.
Solution:
Disable 'list' (and thus all listchars) by default for `checkhealth`
files.
Fixes #31145
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtime/ftplugin/checkhealth.vim b/runtime/ftplugin/checkhealth.vim
@@ -8,11 +8,11 @@ endif
runtime! ftplugin/help.vim
-setlocal wrap breakindent linebreak
+setlocal wrap breakindent linebreak nolist
let &l:iskeyword='!-~,^*,^|,^",192-255'
if exists("b:undo_ftplugin")
- let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk<"
+ let b:undo_ftplugin .= "|setl wrap< bri< lbr< kp< isk< list<"
else
- let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk<"
+ let b:undo_ftplugin = "setl wrap< bri< lbr< kp< isk< list<"
endif