Mercurial > vim
diff src/ex_docmd.c @ 15099:39728d503e47 v8.1.0560
patch 8.1.0560: cannot use address type "other" with with user command
commit https://github.com/vim/vim/commit/51a7454cd2c34ee459f104e45768eab3817c099e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 2 18:21:49 2018 +0100
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 https://github.com/vim/vim/issues/3655) Also
reject "%" for commands with "other". Add some more tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Dec 2018 18:30:07 +0100 |
parents | 405309f9dd13 |
children | b101b193d5ff |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2998,6 +2998,7 @@ parse_cmd_address(exarg_T *eap, char_u * } 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