comparison src/option.c @ 33012:859e539d686b v9.0.1798

patch 9.0.1798: The 'syntax' option has no completion. Commit: https://github.com/vim/vim/commit/6dfdff3f273dcea29099d81e3eceb871ae089998 Author: Doug Kearns <dougkearns@gmail.com> Date: Sun Aug 27 18:48:51 2023 +0200 patch 9.0.1798: The 'syntax' option has no completion. 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>
author Christian Brabandt <cb@256bit.org>
date Sun, 27 Aug 2023 19:00:06 +0200
parents 7771cb060685
children 667a17904f64
comparison
equal deleted inserted replaced
33011:a38b40a531e6 33012:859e539d686b
7372 if (is_term_option || (flags & P_NUM)) 7372 if (is_term_option || (flags & P_NUM))
7373 return; 7373 return;
7374 7374
7375 xp->xp_pattern = p + 1; 7375 xp->xp_pattern = p + 1;
7376 7376
7377 #ifdef FEAT_SYN_HL
7378 if (options[opt_idx].var == (char_u *)&p_syn)
7379 {
7380 xp->xp_context = EXPAND_OWNSYNTAX;
7381 return;
7382 }
7383 #endif
7384
7377 if (flags & P_EXPAND) 7385 if (flags & P_EXPAND)
7378 { 7386 {
7379 p = options[opt_idx].var; 7387 p = options[opt_idx].var;
7380 if (p == (char_u *)&p_bdir 7388 if (p == (char_u *)&p_bdir
7381 || p == (char_u *)&p_dir 7389 || p == (char_u *)&p_dir