]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1902: GTK fails to compile with !FEAT_PROP_POPUP v9.1.1902
authorDrew Vogel <dvogel@github>
Mon, 10 Nov 2025 19:58:31 +0000 (19:58 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 10 Nov 2025 19:58:31 +0000 (19:58 +0000)
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 <cb@256bit.org>
src/drawline.c
src/version.c

index 7db64d0ee5f3b3cb0e56863a9088671eb6ef2195..5ad45c6c3c4fb1e2bc0323d3aa3bdfe115abd20a 100644 (file)
@@ -3107,11 +3107,13 @@ win_line(
                    char_u  *p = ptr - (mb_off + 1);
                    chartabsize_T cts;
 
-                   init_chartabsize_arg(&cts, wp, lnum, wlv.vcol
+
+                   colnr_T init_colnr = wlv.vcol;
 # ifdef FEAT_PROP_POPUP
-                                                            - vcol_first_char,
+                   init_colnr -= vcol_first_char;
 # endif
-                                                                     line, p);
+                   init_chartabsize_arg(&cts, wp, lnum, init_colnr, line, p);
+
 # ifdef FEAT_PROP_POPUP
                    // do not want virtual text counted here
                    cts.cts_has_prop_with_text = FALSE;
index df2c7f0508878b5c9cf7208a64988ead978ba447..743af8af9a8a4bea292e8cbc6b0ad4e9fc4d8e87 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1902,
 /**/
     1901,
 /**/