changeset 26443:fee1e854e183 v8.2.3752

patch 8.2.3752: build error when using Photon GUI Commit: https://github.com/vim/vim/commit/8603be338ac810446f23c092f21bc6082f787519 Author: h-east <h.east.727@gmail.com> Date: Mon Dec 6 11:24:09 2021 +0000 patch 8.2.3752: build error when using Photon GUI Problem: Build error when using Photon GUI. Solution: Adjust #ifdef. (closes https://github.com/vim/vim/issues/9288)
author Bram Moolenaar <Bram@vim.org>
date Mon, 06 Dec 2021 12:30:05 +0100
parents 602045c2b514
children aee00d57234d
files src/beval.c src/version.c
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/beval.c
+++ b/src/beval.c
@@ -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;
     }
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3752,
+/**/
     3751,
 /**/
     3750,