From f5dabea2a6769fb7c13399407b34fee5e3989022 Mon Sep 17 00:00:00 2001 From: Leonard den Ottolander Date: Tue, 7 Jun 2005 20:55:13 +0000 Subject: [PATCH] main.c: Also match tabs as empty command. --- src/ChangeLog | 4 ++++ src/main.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4c6e48dcc..8f6751f66 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2005-06-07 Leonard den Ottolander + + * main.c (midnight_callback): Also match tabs as empty command. + 2005-06-07 Jindrich Novy * command.c (command_callback): Fixed gcc warning about diff --git a/src/main.c b/src/main.c index 0a7d36a73..2e9f12bb4 100644 --- a/src/main.c +++ b/src/main.c @@ -1488,7 +1488,8 @@ midnight_callback (struct Dlg_head *h, dlg_msg_t msg, int parm) free_completions (cmdline); if (parm == '\n') { - for (i = 0; cmdline->buffer[i] && cmdline->buffer[i] == ' '; i++); + for (i = 0; cmdline->buffer[i] && (cmdline->buffer[i] == ' ' || + cmdline->buffer[i] == '\t'); i++); if (cmdline->buffer[i]) { send_message ((Widget *) cmdline, WIDGET_KEY, parm); return MSG_HANDLED;