aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/lua.txt
diff options
context:
space:
mode:
authoraltermo <107814000+altermo@users.noreply.github.com>2024-07-11 18:16:51 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-07-16 15:07:40 +0200
commit118ae7e5ed6cfab6a49ec70c21da2b850161289c (patch)
treecabb27fa81e8d73fe2f9ec3176b94472411f3d5d /runtime/doc/lua.txt
parenta5d4e3467d4568e5ac804f8178dda054f5360b15 (diff)
downloadrneovim-118ae7e5ed6cfab6a49ec70c21da2b850161289c.tar.gz
rneovim-118ae7e5ed6cfab6a49ec70c21da2b850161289c.tar.bz2
rneovim-118ae7e5ed6cfab6a49ec70c21da2b850161289c.zip
fix(tohtml): support ranges again
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r--runtime/doc/lua.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 57796a4716..c1ffc41c24 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -4412,7 +4412,7 @@ vim.text.hexencode({str}) *vim.text.hexencode()*
Lua module: tohtml *vim.tohtml*
-:TOhtml {file} *:TOhtml*
+:[range]TOhtml {file} *:TOhtml*
Converts the buffer shown in the current window to HTML, opens the generated
HTML in a new split window, and saves its contents to {file}. If {file} is not
given, a temporary file (created by |tempname()|) is used.
@@ -4434,6 +4434,8 @@ tohtml.tohtml({winid}, {opt}) *tohtml.tohtml.tohtml()*
• {width}? (`integer`, default: 'textwidth' if non-zero or
window width otherwise) Width used for items which are
either right aligned or repeat a character infinitely.
+ • {range}? (`integer[]`, default: entire buffer) Range of
+ rows to use.
Return: ~
(`string[]`)