Patch 9.0.0717

3 views
Skip to first unread message

Bram Moolenaar

unread,
Oct 10, 2022, 3:34:12 PM10/10/22
to vim...@googlegroups.com

Patch 9.0.0717
Problem: Compiler warning for unused variable in tiny build.
Solution: Add #ifdefs.
Files: src/drawline.c


*** ../vim-9.0.0716/src/drawline.c 2022-10-10 19:50:19.482640200 +0100
--- src/drawline.c 2022-10-10 20:31:42.725231268 +0100
***************
*** 977,985 ****
--- 977,987 ----

int n_skip = 0; // nr of cells to skip for 'nowrap' or
// concealing
+ #ifdef FEAT_PROP_POPUP
int skip_cells = 0; // nr of cells to skip for virtual text
// after the line, when w_skipcol is
// larger than the text length
+ #endif

int fromcol_prev = -2; // start of inverting after cursor
int noinvcur = FALSE; // don't invert the cursor
***************
*** 1508,1517 ****
--- 1510,1521 ----
n_skip = v - wlv.vcol;
}

+ #ifdef FEAT_PROP_POPUP
// If there the text doesn't reach to the desired column, need to skip
// "skip_cells" cells when virtual text follows.
if (!wp->w_p_wrap && v > wlv.vcol)
skip_cells = v - wlv.vcol;
+ #endif

// Adjust for when the inverted text is before the screen,
// and when the start of the inverted text is before the screen.
*** ../vim-9.0.0716/src/version.c 2022-10-10 19:50:19.482640200 +0100
--- src/version.c 2022-10-10 20:32:35.909204573 +0100
***************
*** 701,702 ****
--- 701,704 ----
{ /* Add new patch number below this line */
+ /**/
+ 717,
/**/

--
`When any government, or any church for that matter, undertakes to say to
its subjects, "This you may not read, this you must not see, this you are
forbidden to know," the end result is tyranny and oppression no matter how
holy the motives' -- Robert A Heinlein, "If this goes on --"

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages