From 9dc51ec6d4faf1b1a2a54a2bfdb45f50fa95f21d Mon Sep 17 00:00:00 2001 From: Patrick Hallen Date: Wed, 11 Feb 2009 20:52:53 +0100 Subject: [PATCH] list_window: Added message when selection is enabled/disabled. The user should get a visual feedback, when he enables or disables the visual selection, so I added a message which is shown in the status screen. Perhaps there should be a flag on the right top, when visual selection is enabled to not confuse users, who accidentally enable it. --- src/list_window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/list_window.c b/src/list_window.c index 4cd9a8f..c098440 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -24,6 +24,8 @@ #include "match.h" #include "command.h" #include "colors.h" +#include "screen.h" +#include "i18n.h" #include #include @@ -382,11 +384,13 @@ list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd) case CMD_LIST_VISUAL_SELECT: if(lw->visual_selection) { + screen_status_printf(_("Visual selection disabled")); lw->visual_selection = false; list_window_set_selected(lw, lw->selected); } else { + screen_status_printf(_("Visual selection enabled")); lw->visual_base = lw->selected; lw->visual_selection = true; } -- 2.30.2