mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
main.c: Also match tabs as empty command.
This commit is contained in:
parent
b01a803341
commit
f5dabea2a6
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user