diff options
Diffstat (limited to 'runtime/doc/eval.txt')
| -rw-r--r-- | runtime/doc/eval.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 2e58c854e..2027c2eeb 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -180,10 +180,10 @@ function() or funcref(). When calling the function the Dictionary and/or arguments will be passed to the function. Example: > let Cb = function('Callback', ['foo'], myDict) - call Cb() + call Cb('bar') This will invoke the function as if using: > - call myDict.Callback('foo') + call myDict.Callback('foo', 'bar') This is very useful when passing a function around, e.g. in the arguments of |ch_open()|. @@ -4614,7 +4614,6 @@ getcurpos() Get the position of the cursor. This is like getpos('.'), but getcwd([{winnr} [, {tabnr}]]) The result is a String, which is the name of the current working directory. - Without arguments, for the current window. With {winnr} return the local current directory of this window in the current tab page. {winnr} can be the window number or @@ -9128,7 +9127,7 @@ win_getid([{win} [, {tab}]]) *win_getid()* Get the |window-ID| for the specified window. When {win} is missing use the current window. With {win} this is the window number. The top window has - number 1. Use `win_getid(winnr())` for the current window. + number 1. Without {tab} use the current tab, otherwise the tab with number {tab}. The first tab has number one. Return zero if the window cannot be found. |
