1
0
forked from aniani/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 #3655)  Also
            reject "%" for commands with "other".  Add some more tests.
This commit is contained in:
Bram Moolenaar
2018-12-02 18:21:49 +01:00
parent b513d3079b
commit 51a7454cd2
3 changed files with 63 additions and 1 deletions

View File

@@ -2998,6 +2998,7 @@ parse_cmd_address(exarg_T *eap, char_u **errormsg, int silent)
}
break;
case ADDR_TABS_RELATIVE:
case ADDR_OTHER:
*errormsg = (char_u *)_(e_invrange);
return FAIL;
case ADDR_ARGUMENTS:
@@ -5940,6 +5941,7 @@ static struct
{ADDR_BUFFERS, "buffers"},
{ADDR_WINDOWS, "windows"},
{ADDR_QUICKFIX, "quickfix"},
{ADDR_OTHER, "other"},
{-1, NULL}
};
#endif