Skip to content

Commit 669a828

Browse files
committed
patch 8.0.1319: can't build GUI on MS-Windows
Problem: Can't build GUI on MS-Windows. Solution: Don't define the balloon_split() function in a GUI-only build.
1 parent 246fe03 commit 669a828

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

runtime/doc/eval.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2708,13 +2708,16 @@ balloon_show({expr}) *balloon_show()*
27082708

27092709
When showing a balloon is not possible nothing happens, no
27102710
error message.
2711-
{only available when compiled with the +balloon_eval feature}
2711+
{only available when compiled with the +balloon_eval or
2712+
+balloon_eval_term feature}
27122713

27132714
balloon_split({msg}) *balloon_split()*
27142715
Split {msg} into lines to be displayed in a balloon. The
27152716
splits are made for the current window size and optimize to
27162717
show debugger output.
27172718
Returns a |List| with the split lines.
2719+
{only available when compiled with the +balloon_eval_term
2720+
feature}
27182721

27192722
*browse()*
27202723
browse({save}, {title}, {initdir}, {default})

src/evalfunc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ static void f_atan2(typval_T *argvars, typval_T *rettv);
6161
#endif
6262
#ifdef FEAT_BEVAL
6363
static void f_balloon_show(typval_T *argvars, typval_T *rettv);
64+
# if defined(FEAT_BEVAL_TERM)
6465
static void f_balloon_split(typval_T *argvars, typval_T *rettv);
66+
# endif
6567
#endif
6668
static void f_browse(typval_T *argvars, typval_T *rettv);
6769
static void f_browsedir(typval_T *argvars, typval_T *rettv);
@@ -495,7 +497,9 @@ static struct fst
495497
#endif
496498
#ifdef FEAT_BEVAL
497499
{"balloon_show", 1, 1, f_balloon_show},
500+
# if defined(FEAT_BEVAL_TERM)
498501
{"balloon_split", 1, 1, f_balloon_split},
502+
# endif
499503
#endif
500504
{"browse", 4, 4, f_browse},
501505
{"browsedir", 2, 2, f_browsedir},
@@ -1424,6 +1428,7 @@ f_balloon_show(typval_T *argvars, typval_T *rettv UNUSED)
14241428
}
14251429
}
14261430

1431+
# if defined(FEAT_BEVAL_TERM)
14271432
static void
14281433
f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
14291434
{
@@ -1444,6 +1449,7 @@ f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
14441449
}
14451450
}
14461451
}
1452+
# endif
14471453
#endif
14481454

14491455
/*

src/version.c

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

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1319,
774776
/**/
775777
1318,
776778
/**/

0 commit comments

Comments
 (0)