aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-28 18:27:59 +0800
committerGitHub <noreply@github.com>2022-09-28 18:27:59 +0800
commit35e2c4a2edd28f72c48c70530c5486365c2502a4 (patch)
treeec54859fafa670fb1b5b8d2801d1a5e0ee5d2e96 /runtime
parenteb4844b5ed9bcf8c434a93b9f9def4fe81557f37 (diff)
downloadrneovim-35e2c4a2edd28f72c48c70530c5486365c2502a4.tar.gz
rneovim-35e2c4a2edd28f72c48c70530c5486365c2502a4.tar.bz2
rneovim-35e2c4a2edd28f72c48c70530c5486365c2502a4.zip
fix(lua): fix architecture-dependent behavior in usercmd "reg" (#20384)
I don't think using an integer as a NUL-terminated string can work on big-endian systems, at least. This is also not tested. Add a test. Also fix a mistake in the docs of nvim_parse_cmd.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index ce59f5ad52..f0145344a4 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1811,7 +1811,7 @@ nvim_parse_cmd({str}, {opts}) *nvim_parse_cmd()*
range items were specified.
• count: (number) Any |<count>| that was supplied to the command. -1
if command cannot take a count.
- • reg: (number) The optional command |<register>|, if specified. Empty
+ • reg: (string) The optional command |<register>|, if specified. Empty
string if not specified or if command cannot take a register.
• bang: (boolean) Whether command contains a |<bang>| (!) modifier.
• args: (array) Command arguments.