summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-02 18:21:49 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-02 18:21:49 +0100
commit51a7454cd2c34ee459f104e45768eab3817c099e (patch)
tree6361cdd2255180a8e51f317efab9c97d5dc74c19 /src/ex_docmd.c
parentb513d3079bbe3f59a1f1a3d6931939a76cd7e54a (diff)
downloadvim-git-51a7454cd2c34ee459f104e45768eab3817c099e.tar.gz
patch 8.1.0560: cannot use address type "other" with with user commandv8.1.0560
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.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d00ca5689..9040c0d07 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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