diff options
author | Doug Kearns <dougkearns@gmail.com> | 2023-08-27 18:48:51 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-08-27 18:48:51 +0200 |
commit | 6dfdff3f273dcea29099d81e3eceb871ae089998 (patch) | |
tree | 41e708b2fcc8870baf0d971bce3ef93da46123d8 /src/option.c | |
parent | f97f6bbf56408c0c97b4ddbe81fba858d7455b0d (diff) |
patch 9.0.1798: The 'syntax' option has no completion.v9.0.1798
Problem: The 'syntax' option has no completion.
Solution: Add syntax option completion.
closes: #12900
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 15febb73c0..095653da75 100644 --- a/src/option.c +++ b/src/option.c @@ -7374,6 +7374,14 @@ set_context_in_set_cmd( xp->xp_pattern = p + 1; +#ifdef FEAT_SYN_HL + if (options[opt_idx].var == (char_u *)&p_syn) + { + xp->xp_context = EXPAND_OWNSYNTAX; + return; + } +#endif + if (flags & P_EXPAND) { p = options[opt_idx].var; |