From d50dc18be07d1ab2129c77d74a3564b3707affe7 Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Mon, 29 Nov 2004 20:11:07 +0000 Subject: [PATCH] * main.c (midnight_callback): Make the the keystrokes the invoke select_cmd(), unselect_cmd() and reverse_selection_cmd () work even if the command prompt is turned off. --- src/ChangeLog | 6 ++++++ src/main.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 92d69d124..88b46547d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2004-11-29 Pavel Tsekov + + * main.c (midnight_callback): Make the the keystrokes the invoke + select_cmd(), unselect_cmd() and reverse_selection_cmd () work + even if the command prompt is turned off. + 2004-11-26 Andrew V. Samoilov * execute.c (shell_execute): Optimize memory usage. diff --git a/src/main.c b/src/main.c index 0f4831cd4..6dc407301 100644 --- a/src/main.c +++ b/src/main.c @@ -1525,7 +1525,7 @@ midnight_callback (struct Dlg_head *h, dlg_msg_t msg, int parm) 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 */