Alias /n to /view n where n is a number

This commit is contained in:
Curtis McEnroe 2018-08-18 18:31:51 -04:00
父節點 6ec3c3011e
當前提交 e29f67dde5
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: CEA2F97ADCFCD77C

查看文件

@ -178,7 +178,14 @@ void input(struct Tag tag, char *input) {
COMMANDS[i].handler(tag, input); COMMANDS[i].handler(tag, input);
return; return;
} }
char *trail;
strtol(&command[1], &trail, 0);
if (!trail[0]) {
inputView(tag, &command[1]);
} else {
uiFmt(TAG_STATUS, UI_WARM, "%s isn't a recognized command", command); uiFmt(TAG_STATUS, UI_WARM, "%s isn't a recognized command", command);
}
} }
void inputTab(void) { void inputTab(void) {