]> granicus.if.org Git - vim/commitdiff
patch 8.2.3752: build error when using Photon GUI v8.2.3752
authorh-east <h.east.727@gmail.com>
Mon, 6 Dec 2021 11:24:09 +0000 (11:24 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Dec 2021 11:24:09 +0000 (11:24 +0000)
Problem:    Build error when using Photon GUI.
Solution:   Adjust #ifdef. (closes #9288)

src/beval.c
src/version.c

index dd7bc3cdc7b9ee29beb687d0da579c44dbab7e4b..8e0efb5e2b87db4a7a6dda26ab98c1989114d845 100644 (file)
@@ -150,18 +150,18 @@ get_beval_info(
     int                row = mouse_row;
     int                col = mouse_col;
 
-# ifdef FEAT_GUI
+# ifdef FEAT_BEVAL_GUI
     if (gui.in_use)
     {
        row = Y_2_ROW(beval->y);
        col = X_2_COL(beval->x);
     }
-#endif
+# endif
     if (find_word_under_cursor(row, col, getword,
                FIND_IDENT + FIND_STRING + FIND_EVAL,
                winp, lnump, textp, colp, NULL) == OK)
     {
-#ifdef FEAT_VARTABS
+# ifdef FEAT_VARTABS
        vim_free(beval->vts);
        beval->vts = tabstop_copy((*winp)->w_buffer->b_p_vts_array);
        if ((*winp)->w_buffer->b_p_vts_array != NULL && beval->vts == NULL)
@@ -170,7 +170,7 @@ get_beval_info(
                vim_free(*textp);
            return FAIL;
        }
-#endif
+# endif
        beval->ts = (*winp)->w_buffer->b_p_ts;
        return OK;
     }
index 2e39ab7d93a337a50cab54a3dfa66648b3b1d4af..6d63569671ce8918d72015c3c0814ce56e0e53b2 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3752,
 /**/
     3751,
 /**/