]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.2.0826: highlighting for broken terminals can be improved v9.2.0826
authorMaxim Kim <habamax@gmail.com>
Wed, 22 Jul 2026 09:16:53 +0000 (09:16 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 22 Jul 2026 09:19:43 +0000 (09:19 +0000)
commit38f27d01b541fbff8cd5e07fbb63ffb8f93fc799
tree24178a5cf004e68d4518e928b6cf49034c58e2ea
parentade577e4dc2a9f34d2d592cbe1c80b9fc89753bf
patch 9.2.0826: highlighting for broken terminals can be improved

Problem:  highlighting for broken terminals can be improved
          (Maxim Kim)
Solution: Make the highlighting work better when the terminal does not
          support colors (Maxim Kim)

In a colorless or broken terminal emulator current syntax highlighting
is too intense with using bold and underline for various syntax
elements.

In this scenario, when the colors are not available at all, the most
important part of the syntax is the comments, something that is not
executed or compiled.

- Comments are highlighted as bold
- All other syntax elements are set to NONE
- LineNr is not highlighted (was underline)
- SpecialKey is not highlighted (was bold)

fixes:  #20712
closes: #20799

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/version9.txt
runtime/syntax/syncolor.vim
src/highlight.c
src/version.c