aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorNAKAI Tsuyoshi <82267684+uga-rosa@users.noreply.github.com>2023-04-11 23:28:46 +0900
committerGitHub <noreply@github.com>2023-04-11 16:28:46 +0200
commit9e86f473e0f4e21c5f40bf990c53194d593a0f9f (patch)
tree39f52084142ee87eb1e23a0aaa04eb337bca8f93 /runtime/doc
parentaab95ec67e4d80e63cc5c5acc42f3832e76e0781 (diff)
downloadrneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.tar.gz
rneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.tar.bz2
rneovim-9e86f473e0f4e21c5f40bf990c53194d593a0f9f.zip
feat(lua): vim.region accepts getpos() arg (#22635)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/lua.txt7
-rw-r--r--runtime/doc/news.txt2
2 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt
index 6084a625ba..2424c73f8f 100644
--- a/runtime/doc/lua.txt
+++ b/runtime/doc/lua.txt
@@ -1516,9 +1516,10 @@ region({bufnr}, {pos1}, {pos2}, {regtype}, {inclusive}) *vim.region()*
Parameters: ~
• {bufnr} (integer) number of buffer
- • {pos1} integer[] (line, column) tuple marking beginning of
- region
- • {pos2} integer[] (line, column) tuple marking end of region
+ • {pos1} integer[]|string start of region as a (line, column)
+ tuple or string accepted by |getpos()|
+ • {pos2} integer[]|string end of region as a (line, column) tuple
+ or string accepted by |getpos()|
• {regtype} (string) type of selection, see |setreg()|
• {inclusive} (boolean) indicating whether column of pos2 is inclusive
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index 6e2a1b1d3f..a9a80ed002 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -30,7 +30,7 @@ CHANGED FEATURES *news-changed*
The following changes to existing APIs or features add new behavior.
-• ...
+• |vim.region()| can use a string accepted by |getpos()| as position.
==============================================================================
REMOVED FEATURES *news-removed*