aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-30 21:50:52 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-10-11 11:53:40 -0400
commite8c2a8269e477688c9915a94f34665b04f388e76 (patch)
treeda02e4cdc8ee2b87a62a48c51de4c86b094835dd /src/nvim/ex_docmd.c
parentb9776ff5b757ed051acb0ae5c6a1464cec333698 (diff)
downloadrneovim-e8c2a8269e477688c9915a94f34665b04f388e76.tar.gz
rneovim-e8c2a8269e477688c9915a94f34665b04f388e76.tar.bz2
rneovim-e8c2a8269e477688c9915a94f34665b04f388e76.zip
vim-patch:8.1.0560: cannot use address type "other" with with user command
Problem: Cannot use address type "other" with with user command. Solution: Add "other" to the list. (Daniel Hahler, closes vim/vim#3655) Also reject "%" for commands with "other". Add some more tests. https://github.com/vim/vim/commit/51a7454cd2c34ee459f104e45768eab3817c099e
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index ccaa0b0e52..0a1ac7a3ed 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -2400,6 +2400,7 @@ int parse_cmd_address(exarg_T *eap, char_u **errormsg, bool silent)
}
break;
case ADDR_TABS_RELATIVE:
+ case ADDR_OTHER:
*errormsg = (char_u *)_(e_invrange);
return FAIL;
case ADDR_ARGUMENTS:
@@ -5066,6 +5067,7 @@ static struct {
{ ADDR_BUFFERS, "buffers" },
{ ADDR_WINDOWS, "windows" },
{ ADDR_QUICKFIX, "quickfix" },
+ { ADDR_OTHER, "other" },
{ -1, NULL }
};