[PATCH]: Allow select/unselect even if there is no command prompt



Hello,

Please, apply the attached patch. It fixes the following issue:

1) Disable the command prompt - Options -> Layout... -> command Prompt

2) Hit any of the keys +, - or *

Instead of doing what it is supposed to do (select/unselect) MC starts
a file search. I don't see any relation between the select/unselect
functionality and the presence of the command prompt widget thus I
consider the described behaviour a bug.

This bug was reported by Alex Yosifov.
Index: main.c
===================================================================
RCS file: /cvsroot/mc/mc/src/main.c,v
retrieving revision 1.344
diff -u -p -r1.344 main.c
--- main.c	22 Oct 2004 05:47:25 -0000	1.344
+++ main.c	29 Nov 2004 13:20:43 -0000
@@ -1525,7 +1525,7 @@ midnight_callback (struct Dlg_head *h, d
 		    reverse_selection_cmd ();
 		    return MSG_HANDLED;
 		}
-	    } else if (command_prompt && !strlen (cmdline->buffer)) {
+	    } else if (!command_prompt || !strlen (cmdline->buffer)) {
 		/* Special treatement '+', '-', '\', '*' only when this is 
 		 * first char on input line
 		 */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]