diff --git a/src/filemanager/midnight.c b/src/filemanager/midnight.c index da25d750a..25398e351 100644 --- a/src/filemanager/midnight.c +++ b/src/filemanager/midnight.c @@ -1460,6 +1460,16 @@ midnight_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void { size_t i; + /* HACK: don't execute command in the command line if Enter was pressed + in the quick viewer panel. */ + /* TODO: currently, when one of panels is other than view_listing, + current_panel points to view_listing panel all time independently of + it's activity. Thus, we can't use get_current_type() here. + current_panel should point to actualy current active panel + independently of it's type. */ + if (current_panel->active == 0 && get_other_type () == view_quick) + return MSG_NOT_HANDLED; + for (i = 0; cmdline->buffer[i] != '\0' && (cmdline->buffer[i] == ' ' || cmdline->buffer[i] == '\t'); i++) ;