Mercurial > vim
changeset 9217:9495e43a800d v7.4.1892
commit https://github.com/vim/vim/commit/c9721bdc63378cc6123e775ffe43e9cba30322b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 4 17:41:03 2016 +0200
patch 7.4.1892
Problem: balloon eval only gets the window number, not the ID.
Solution: Add v:beval_winid.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 04 Jun 2016 17:45:05 +0200 |
parents | ef01d1e6e825 |
children | 13b7a7cebc15 |
files | src/eval.c src/gui_beval.c src/version.c src/vim.h |
diffstat | 4 files changed, 34 insertions(+), 29 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -349,6 +349,7 @@ static struct vimvar {VV_NAME("fcs_choice", VAR_STRING), 0}, {VV_NAME("beval_bufnr", VAR_NUMBER), VV_RO}, {VV_NAME("beval_winnr", VAR_NUMBER), VV_RO}, + {VV_NAME("beval_winid", VAR_NUMBER), VV_RO}, {VV_NAME("beval_lnum", VAR_NUMBER), VV_RO}, {VV_NAME("beval_col", VAR_NUMBER), VV_RO}, {VV_NAME("beval_text", VAR_STRING), VV_RO},
--- a/src/gui_beval.c +++ b/src/gui_beval.c @@ -61,6 +61,7 @@ general_beval_cb(BalloonEval *beval, int set_vim_var_nr(VV_BEVAL_BUFNR, (long)wp->w_buffer->b_fnum); set_vim_var_nr(VV_BEVAL_WINNR, winnr); + set_vim_var_nr(VV_BEVAL_WINID, wp->w_id); set_vim_var_nr(VV_BEVAL_LNUM, (long)lnum); set_vim_var_nr(VV_BEVAL_COL, (long)(col + 1)); set_vim_var_string(VV_BEVAL_TEXT, text, -1);
--- 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 */ /**/ + 1892, +/**/ 1891, /**/ 1890,
--- a/src/vim.h +++ b/src/vim.h @@ -1877,35 +1877,36 @@ typedef int sock_T; #define VV_FCS_CHOICE 38 #define VV_BEVAL_BUFNR 39 #define VV_BEVAL_WINNR 40 -#define VV_BEVAL_LNUM 41 -#define VV_BEVAL_COL 42 -#define VV_BEVAL_TEXT 43 -#define VV_SCROLLSTART 44 -#define VV_SWAPNAME 45 -#define VV_SWAPCHOICE 46 -#define VV_SWAPCOMMAND 47 -#define VV_CHAR 48 -#define VV_MOUSE_WIN 49 -#define VV_MOUSE_LNUM 50 -#define VV_MOUSE_COL 51 -#define VV_OP 52 -#define VV_SEARCHFORWARD 53 -#define VV_HLSEARCH 54 -#define VV_OLDFILES 55 -#define VV_WINDOWID 56 -#define VV_PROGPATH 57 -#define VV_COMPLETED_ITEM 58 -#define VV_OPTION_NEW 59 -#define VV_OPTION_OLD 60 -#define VV_OPTION_TYPE 61 -#define VV_ERRORS 62 -#define VV_FALSE 63 -#define VV_TRUE 64 -#define VV_NULL 65 -#define VV_NONE 66 -#define VV_VIM_DID_ENTER 67 -#define VV_TESTING 68 -#define VV_LEN 69 /* number of v: vars */ +#define VV_BEVAL_WINID 41 +#define VV_BEVAL_LNUM 42 +#define VV_BEVAL_COL 43 +#define VV_BEVAL_TEXT 44 +#define VV_SCROLLSTART 45 +#define VV_SWAPNAME 46 +#define VV_SWAPCHOICE 47 +#define VV_SWAPCOMMAND 48 +#define VV_CHAR 49 +#define VV_MOUSE_WIN 50 +#define VV_MOUSE_LNUM 51 +#define VV_MOUSE_COL 52 +#define VV_OP 53 +#define VV_SEARCHFORWARD 54 +#define VV_HLSEARCH 55 +#define VV_OLDFILES 56 +#define VV_WINDOWID 57 +#define VV_PROGPATH 58 +#define VV_COMPLETED_ITEM 59 +#define VV_OPTION_NEW 60 +#define VV_OPTION_OLD 61 +#define VV_OPTION_TYPE 62 +#define VV_ERRORS 63 +#define VV_FALSE 64 +#define VV_TRUE 65 +#define VV_NULL 66 +#define VV_NONE 67 +#define VV_VIM_DID_ENTER 68 +#define VV_TESTING 69 +#define VV_LEN 70 /* number of v: vars */ /* used for v_number in VAR_SPECIAL */ #define VVAL_FALSE 0L