Mercurial > vim
changeset 12885:10cb5c3df3f5 v8.0.1319
patch 8.0.1319: can't build GUI on MS-Windows
commit https://github.com/vim/vim/commit/669a828cdc1f019e7abda0e5e9b223d7897f06a8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 19 20:13:05 2017 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 19 Nov 2017 20:15:05 +0100 |
parents | 60a00eeef369 |
children | b959416f83cb |
files | runtime/doc/eval.txt src/evalfunc.c src/version.c |
diffstat | 3 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2708,13 +2708,16 @@ balloon_show({expr}) *balloon_show() When showing a balloon is not possible nothing happens, no error message. - {only available when compiled with the +balloon_eval feature} + {only available when compiled with the +balloon_eval or + +balloon_eval_term feature} balloon_split({msg}) *balloon_split()* Split {msg} into lines to be displayed in a balloon. The splits are made for the current window size and optimize to show debugger output. Returns a |List| with the split lines. + {only available when compiled with the +balloon_eval_term + feature} *browse()* browse({save}, {title}, {initdir}, {default})
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -61,7 +61,9 @@ static void f_atan2(typval_T *argvars, t #endif #ifdef FEAT_BEVAL static void f_balloon_show(typval_T *argvars, typval_T *rettv); +# if defined(FEAT_BEVAL_TERM) static void f_balloon_split(typval_T *argvars, typval_T *rettv); +# endif #endif static void f_browse(typval_T *argvars, typval_T *rettv); static void f_browsedir(typval_T *argvars, typval_T *rettv); @@ -495,7 +497,9 @@ static struct fst #endif #ifdef FEAT_BEVAL {"balloon_show", 1, 1, f_balloon_show}, +# if defined(FEAT_BEVAL_TERM) {"balloon_split", 1, 1, f_balloon_split}, +# endif #endif {"browse", 4, 4, f_browse}, {"browsedir", 2, 2, f_browsedir}, @@ -1424,6 +1428,7 @@ f_balloon_show(typval_T *argvars, typval } } +# if defined(FEAT_BEVAL_TERM) static void f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED) { @@ -1444,6 +1449,7 @@ f_balloon_split(typval_T *argvars, typva } } } +# endif #endif /*