]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1138: cmdline completion for :hi is too simplistic v9.1.1138
authorYee Cheng Chin <ychin.git@gmail.com>
Sun, 23 Feb 2025 08:32:47 +0000 (09:32 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 23 Feb 2025 08:34:50 +0000 (09:34 +0100)
commita7b8120820dc5257c76dc6086c077fa86189f4ee
treeeb596ec89cae8c1c439835880935a26cf648d36c
parentf4b36417e893ff40296f1a5a264a4ecc6965f1d5
patch 9.1.1138: cmdline completion for :hi is too simplistic

Problem:  Existing cmdline completion for :highlight was barebone and
          only completed the highlight group names.

Solution: Implement full completion for the highlight group arguments
          such as guifg and cterm. If the user tries to complete
          immediately after the '=' (e.g. `hi Normal guifg=<Tab>`), the
          completion will fill in the existing value, similar to how
          cmdline completion for options work (Yee Cheng Chin).

closes: #16712

Signed-off-by: Yee Cheng Chin <ychin.git@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
12 files changed:
runtime/doc/eval.txt
runtime/doc/syntax.txt
runtime/doc/version9.txt
src/cmdexpand.c
src/highlight.c
src/proto/cmdexpand.pro
src/proto/highlight.pro
src/syntax.c
src/testdir/test_cmdline.vim
src/testdir/test_syntax.vim
src/version.c
src/vim.h