vim-patch:8.2.4402: missing parenthesis may cause unexpected problems

Problem:    Missing parenthesis may cause unexpected problems.
Solution:   Add more parenthesis is macros.
ae6f1d8b14
This commit is contained in:
Brian Leung
2022-04-03 02:36:01 -07:00
parent 271bb32855
commit 69e11b58b4
17 changed files with 58 additions and 59 deletions

View File

@@ -2119,13 +2119,13 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
// draw_state: items that are drawn in sequence:
#define WL_START 0 // nothing done yet
#define WL_CMDLINE WL_START + 1 // cmdline window column
#define WL_FOLD WL_CMDLINE + 1 // 'foldcolumn'
#define WL_SIGN WL_FOLD + 1 // column for signs
#define WL_NR WL_SIGN + 1 // line number
#define WL_BRI WL_NR + 1 // 'breakindent'
#define WL_SBR WL_BRI + 1 // 'showbreak' or 'diff'
#define WL_LINE WL_SBR + 1 // text in the line
#define WL_CMDLINE (WL_START + 1) // cmdline window column
#define WL_FOLD (WL_CMDLINE + 1) // 'foldcolumn'
#define WL_SIGN (WL_FOLD + 1) // column for signs
#define WL_NR (WL_SIGN + 1) // line number
#define WL_BRI (WL_NR + 1) // 'breakindent'
#define WL_SBR (WL_BRI + 1) // 'showbreak' or 'diff'
#define WL_LINE (WL_SBR + 1) // text in the line
int draw_state = WL_START; // what to draw next
int syntax_flags = 0;