mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +00:00
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.
51a7454cd2
This commit is contained in:
@@ -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 }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user