diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-04-13 23:04:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-04-13 23:04:47 +0200 |
commit | 53bfca22f1f67934defa5f9c62ae5a6d5cf9f198 (patch) | |
tree | 99509c9b58f5f10912f19b8179c4743d4c205835 /runtime/doc/if_lua.txt | |
parent | 09210ac93cacd4552593604066a86b2e7036a636 (diff) |
Updated runtime files.
Diffstat (limited to 'runtime/doc/if_lua.txt')
-rw-r--r-- | runtime/doc/if_lua.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt index 718a229ebf..6626e383ea 100644 --- a/runtime/doc/if_lua.txt +++ b/runtime/doc/if_lua.txt @@ -59,13 +59,14 @@ Example: < *:luado* -:[range]luado {body} Execute Lua function "function (line) {body} end" for - each line in the [range], with the function argument - being set to the text of each line in turn, without a - trailing <EOL>. If the value returned by the function - is a string it becomes the text of the line in the - current turn. The default for [range] is the whole - file: "1,$". {not in Vi} +:[range]luado {body} Execute Lua function "function (line, linenr) {body} + end" for each line in the [range], with the function + argument being set to the text of each line in turn, + without a trailing <EOL>, and the current line number. + If the value returned by the function is a string it + becomes the text of the line in the current turn. The + default for [range] is the whole file: "1,$". + {not in Vi} Examples: > |