mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
vim-patch:7.4.561
Patch 7.4.561 Problem: Ex range handling is wrong for buffer-local user commands. Solution: Check for CMD_USER_BUF. (Marcin Szamotulski) https://code.google.com/p/vim/source/detail?name=v7-4-561
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user