Skip to content

Commit 20ccdc7

Browse files
Drew Vogelchrisbra
authored andcommitted
patch 9.1.1902: GTK fails to compile with !FEAT_PROP_POPUP
Problem: GTK fails to compile with !FEAT_PROP_POPUP Solution: Correct syntax under #ifdef (Drew Vogel) related: #18708 Signed-off-by: Drew Vogel <dvogel@github> Signed-off-by: Christian Brabandt <[email protected]>
1 parent e1e3474 commit 20ccdc7

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/drawline.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,11 +3107,13 @@ win_line(
31073107
char_u *p = ptr - (mb_off + 1);
31083108
chartabsize_T cts;
31093109

3110-
init_chartabsize_arg(&cts, wp, lnum, wlv.vcol
3110+
3111+
colnr_T init_colnr = wlv.vcol;
31113112
# ifdef FEAT_PROP_POPUP
3112-
- vcol_first_char,
3113+
init_colnr -= vcol_first_char;
31133114
# endif
3114-
line, p);
3115+
init_chartabsize_arg(&cts, wp, lnum, init_colnr, line, p);
3116+
31153117
# ifdef FEAT_PROP_POPUP
31163118
// do not want virtual text counted here
31173119
cts.cts_has_prop_with_text = FALSE;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,8 @@ static char *(features[]) =
729729

730730
static int included_patches[] =
731731
{ /* Add new patch number below this line */
732+
/**/
733+
1902,
732734
/**/
733735
1901,
734736
/**/

0 commit comments

Comments
 (0)