main.c: Also match tabs as empty command.

This commit is contained in:
Leonard den Ottolander 2005-06-07 20:55:13 +00:00
parent b01a803341
commit f5dabea2a6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-06-07 Leonard den Ottolander <leonard den ottolander nl>
* main.c (midnight_callback): Also match tabs as empty command.
2005-06-07 Jindrich Novy <jnovy@redhat.com>
* command.c (command_callback): Fixed gcc warning about

View File

@ -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;