forked from aniani/vim
updated for version 7.4.561
Problem: Ex range handling is wrong for buffer-local user commands. Solution: Check for CMD_USER_BUF. (Marcin Szamotulski)
This commit is contained in:
@@ -2133,12 +2133,13 @@ do_one_cmd(cmdlinep, sourcing,
|
||||
if (ea.cmdidx != CMD_SIZE
|
||||
#ifdef FEAT_USR_CMDS
|
||||
&& ea.cmdidx != CMD_USER
|
||||
&& ea.cmdidx != CMD_USER_BUF
|
||||
#endif
|
||||
)
|
||||
ea.addr_type = cmdnames[(int)ea.cmdidx].cmd_addr_type;
|
||||
else
|
||||
#ifdef FEAT_USR_CMDS
|
||||
if (ea.cmdidx != CMD_USER)
|
||||
if (ea.cmdidx != CMD_USER && ea.cmdidx != CMD_USER_BUF)
|
||||
#endif
|
||||
ea.addr_type = ADDR_LINES;
|
||||
/* ea.addr_type for user commands is set by find_ucmd */
|
||||
|
Reference in New Issue
Block a user