-N without arguments needs to set prefix count for the mode command, so

that M-1 etc work. Reported by Theo Buehler.
pull/705/head
nicm 2016-12-11 22:55:25 +00:00
parent bee95bf378
commit b851c628f4
1 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,8 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
free(cause);
return (CMD_RETURN_ERROR);
}
if (args_has(args, 'X') || args->argc == 0)
wp->modeprefix = np;
}
if (args_has(args, 'X')) {
@ -84,7 +86,6 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
cmdq_error(item, "not in a mode");
return (CMD_RETURN_ERROR);
}
wp->modeprefix = np;
if (!m->valid)
wp->mode->command(wp, c, s, args, NULL);
else