Mercurial > vim
diff runtime/doc/eval.txt @ 14999:2b30a2b4bde2
Update runtime files
commit https://github.com/vim/vim/commit/ba3ff539303c7bb6e46a6802dce3c7b2e55284e0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 4 14:45:49 2018 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Nov 2018 15:00:08 +0100 |
parents | 2c0bfa167468 |
children | 67e3103d6e18 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -180,10 +180,10 @@ function() or funcref(). When calling t 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 curs 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_get 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.