aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 75d324b421..6beb8b3523 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -1420,10 +1420,12 @@ static char_u * do_one_cmd(char_u **cmdlinep,
* is equal to the lower.
*/
- if (ea.cmdidx != CMD_USER && ea.cmdidx != CMD_SIZE) {
+ if (ea.cmdidx != CMD_SIZE
+ && ea.cmdidx != CMD_USER
+ && ea.cmdidx != CMD_USER_BUF) {
ea.addr_type = cmdnames[(int)ea.cmdidx].cmd_addr_type;
} else {
- if (ea.cmdidx != CMD_USER) {
+ if (ea.cmdidx != CMD_USER && ea.cmdidx != CMD_USER_BUF) {
ea.addr_type = ADDR_LINES;
// ea.addr_type for user commands is set by find_ucmd
}