aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-04-29 05:53:44 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-04-29 11:53:44 +0200
commita0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c (patch)
treed06365a7b15b5a4179ac6b60da5ef52fb87d1407 /runtime/doc/eval.txt
parent8aca932aa0ace29a11b2036f882c961b33ab5286 (diff)
downloadrneovim-a0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c.tar.gz
rneovim-a0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c.tar.bz2
rneovim-a0d723db55cf2b81e3bd9271cda9b1b58a5c9f3c.zip
vim-patch:8.0.1563: getwinposx() timeout #9955
Problem: Timeout of getwinposx() can be too short. (lilydjwg) Solution: Add getwinpos(). (closes vim/vim#2689) https://github.com/vim/vim/commit/3f54fd319f6641b4bed478bcc90cdb39ede68e31
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 454013ac73..b425e1b591 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2114,8 +2114,8 @@ gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
any {name} in {winnr} in tab page {tabnr}
getwininfo([{winid}]) List list of windows
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
-getwinposx() Number X coord in pixels of GUI Vim window
-getwinposy() Number Y coord in pixels of GUI Vim window
+getwinposx() Number X coord in pixels of Vim window
+getwinposy() Number Y coord in pixels of Vim window
getwinvar({nr}, {varname} [, {def}])
any variable {varname} in window {nr}
glob({expr} [, {nosuf} [, {list} [, {alllinks}]]])
@@ -4550,6 +4550,13 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
To obtain all window-local variables use: >
gettabwinvar({tabnr}, {winnr}, '&')
+getwinpos([{timeout}]) *getwinpos()*
+ The result is a list with two numbers, the result of
+ getwinposx() and getwinposy() combined:
+ [x-pos, y-pos]
+ {timeout} can be used to specify how long to wait in msec for
+ a response from the terminal. When omitted 100 msec is used.
+
*getwinposx()*
getwinposx() The result is a Number, which is the X coordinate in pixels of
the left hand side of the GUI Vim window. The result will be