comparison src/drawline.c @ 27752:c1d1639b52dd v8.2.4402

patch 8.2.4402: missing parenthesis may cause unexpected problems Commit: https://github.com/vim/vim/commit/ae6f1d8b14c2f63811ee83ef14e32086fb3e9b83 Author: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Wed Feb 16 19:24:07 2022 +0000 patch 8.2.4402: missing parenthesis may cause unexpected problems Problem: Missing parenthesis may cause unexpected problems. Solution: Add more parenthesis is macros. (closes https://github.com/vim/vim/issues/9788)
author Bram Moolenaar <Bram@vim.org>
date Wed, 16 Feb 2022 20:30:03 +0100
parents c7f614c9ceb3
children ec6756baed23
comparison
equal deleted inserted replaced
27751:c9330d10419b 27752:c1d1639b52dd
402 #endif 402 #endif
403 403
404 // draw_state: items that are drawn in sequence: 404 // draw_state: items that are drawn in sequence:
405 #define WL_START 0 // nothing done yet 405 #define WL_START 0 // nothing done yet
406 #ifdef FEAT_CMDWIN 406 #ifdef FEAT_CMDWIN
407 # define WL_CMDLINE WL_START + 1 // cmdline window column 407 # define WL_CMDLINE (WL_START + 1) // cmdline window column
408 #else 408 #else
409 # define WL_CMDLINE WL_START 409 # define WL_CMDLINE WL_START
410 #endif 410 #endif
411 #ifdef FEAT_FOLDING 411 #ifdef FEAT_FOLDING
412 # define WL_FOLD WL_CMDLINE + 1 // 'foldcolumn' 412 # define WL_FOLD (WL_CMDLINE + 1) // 'foldcolumn'
413 #else 413 #else
414 # define WL_FOLD WL_CMDLINE 414 # define WL_FOLD WL_CMDLINE
415 #endif 415 #endif
416 #ifdef FEAT_SIGNS 416 #ifdef FEAT_SIGNS
417 # define WL_SIGN WL_FOLD + 1 // column for signs 417 # define WL_SIGN (WL_FOLD + 1) // column for signs
418 #else 418 #else
419 # define WL_SIGN WL_FOLD // column for signs 419 # define WL_SIGN WL_FOLD // column for signs
420 #endif 420 #endif
421 #define WL_NR WL_SIGN + 1 // line number 421 #define WL_NR (WL_SIGN + 1) // line number
422 #ifdef FEAT_LINEBREAK 422 #ifdef FEAT_LINEBREAK
423 # define WL_BRI WL_NR + 1 // 'breakindent' 423 # define WL_BRI (WL_NR + 1) // 'breakindent'
424 #else 424 #else
425 # define WL_BRI WL_NR 425 # define WL_BRI WL_NR
426 #endif 426 #endif
427 #if defined(FEAT_LINEBREAK) || defined(FEAT_DIFF) 427 #if defined(FEAT_LINEBREAK) || defined(FEAT_DIFF)
428 # define WL_SBR WL_BRI + 1 // 'showbreak' or 'diff' 428 # define WL_SBR (WL_BRI + 1) // 'showbreak' or 'diff'
429 #else 429 #else
430 # define WL_SBR WL_BRI 430 # define WL_SBR WL_BRI
431 #endif 431 #endif
432 #define WL_LINE WL_SBR + 1 // text in the line 432 #define WL_LINE (WL_SBR + 1) // text in the line
433 int draw_state = WL_START; // what to draw next 433 int draw_state = WL_START; // what to draw next
434 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) 434 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
435 int feedback_col = 0; 435 int feedback_col = 0;
436 int feedback_old_attr = -1; 436 int feedback_old_attr = -1;
437 #endif 437 #endif