diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2016-04-19 17:42:01 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-04-19 02:49:34 -0400 |
commit | 5c6592fdab6c0618d218e14438de50afe585f7e0 (patch) | |
tree | 80becb1909a231e0067e99d97386dd2efc933e94 | |
parent | ba9bdb3e70722942049fc17c52ef3d9eea866256 (diff) | |
download | rneovim-5c6592fdab6c0618d218e14438de50afe585f7e0.tar.gz rneovim-5c6592fdab6c0618d218e14438de50afe585f7e0.tar.bz2 rneovim-5c6592fdab6c0618d218e14438de50afe585f7e0.zip |
v:windowid #4608
Set v:windowid as writeable (but read only in the sandbox).
References #3626
-rw-r--r-- | runtime/doc/eval.txt | 3 | ||||
-rw-r--r-- | src/nvim/eval.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1af7be08f0..476ab71461 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1763,7 +1763,8 @@ v:version Version number of Vim: Major version number times 100 plus v:warningmsg Last given warning message. It's allowed to set this variable. *v:windowid* *windowid-variable* {Nvim} -v:windowid Is a no-op at the moment; the value is always set to 0. +v:windowid Application-specific window ID ("window handle" in MS-Windows) + which may be set by any attached UI. Defaults to zero. Note: for windows inside Vim use |winnr()|. ============================================================================== diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9d370632a1..598bf2c0dd 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -366,7 +366,7 @@ static struct vimvar { VV(VV_SEARCHFORWARD, "searchforward", VAR_NUMBER, 0), VV(VV_HLSEARCH, "hlsearch", VAR_NUMBER, 0), VV(VV_OLDFILES, "oldfiles", VAR_LIST, 0), - VV(VV_WINDOWID, "windowid", VAR_NUMBER, VV_RO), + VV(VV_WINDOWID, "windowid", VAR_NUMBER, VV_RO_SBX), VV(VV_PROGPATH, "progpath", VAR_STRING, VV_RO), VV(VV_COMMAND_OUTPUT, "command_output", VAR_STRING, 0), VV(VV_COMPLETED_ITEM, "completed_item", VAR_DICT, VV_RO), |