comparison src/drawline.c @ 30765:3002177fa0b1 v9.0.0717

patch 9.0.0717: compiler warning for unused variable in tiny build Commit: https://github.com/vim/vim/commit/d3283fba2593d093593fc692702aabfaa2a68523 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 10 20:33:25 2022 +0100 patch 9.0.0717: compiler warning for unused variable in tiny build Problem: Compiler warning for unused variable in tiny build. Solution: Add #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Mon, 10 Oct 2022 21:45:03 +0200
parents 8ea77a6ceff0
children 5dba398584fd
comparison
equal deleted inserted replaced
30764:26f6dfa606cf 30765:3002177fa0b1
975 int n_attr3 = 0; // chars with overruling special attr 975 int n_attr3 = 0; // chars with overruling special attr
976 int saved_attr3 = 0; // char_attr saved for n_attr3 976 int saved_attr3 = 0; // char_attr saved for n_attr3
977 977
978 int n_skip = 0; // nr of cells to skip for 'nowrap' or 978 int n_skip = 0; // nr of cells to skip for 'nowrap' or
979 // concealing 979 // concealing
980 #ifdef FEAT_PROP_POPUP
980 int skip_cells = 0; // nr of cells to skip for virtual text 981 int skip_cells = 0; // nr of cells to skip for virtual text
981 // after the line, when w_skipcol is 982 // after the line, when w_skipcol is
982 // larger than the text length 983 // larger than the text length
984 #endif
983 985
984 int fromcol_prev = -2; // start of inverting after cursor 986 int fromcol_prev = -2; // start of inverting after cursor
985 int noinvcur = FALSE; // don't invert the cursor 987 int noinvcur = FALSE; // don't invert the cursor
986 int lnum_in_visual_area = FALSE; 988 int lnum_in_visual_area = FALSE;
987 pos_T pos; 989 pos_T pos;
1506 if (((*mb_ptr2cells)(ptr) >= charsize || *ptr == TAB) 1508 if (((*mb_ptr2cells)(ptr) >= charsize || *ptr == TAB)
1507 && wlv.col == 0) 1509 && wlv.col == 0)
1508 n_skip = v - wlv.vcol; 1510 n_skip = v - wlv.vcol;
1509 } 1511 }
1510 1512
1513 #ifdef FEAT_PROP_POPUP
1511 // If there the text doesn't reach to the desired column, need to skip 1514 // If there the text doesn't reach to the desired column, need to skip
1512 // "skip_cells" cells when virtual text follows. 1515 // "skip_cells" cells when virtual text follows.
1513 if (!wp->w_p_wrap && v > wlv.vcol) 1516 if (!wp->w_p_wrap && v > wlv.vcol)
1514 skip_cells = v - wlv.vcol; 1517 skip_cells = v - wlv.vcol;
1518 #endif
1515 1519
1516 // Adjust for when the inverted text is before the screen, 1520 // Adjust for when the inverted text is before the screen,
1517 // and when the start of the inverted text is before the screen. 1521 // and when the start of the inverted text is before the screen.
1518 if (wlv.tocol <= wlv.vcol) 1522 if (wlv.tocol <= wlv.vcol)
1519 wlv.fromcol = 0; 1523 wlv.fromcol = 0;