summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6d621ca)
raw | patch | inline | side by side (parent: 6d621ca)
author | Patrick Hallen <patrick.hallen@rwth-aachen.de> | |
Wed, 11 Feb 2009 19:52:53 +0000 (20:52 +0100) | ||
committer | Patrick Hallen <patrick.hallen@rwth-aachen.de> | |
Wed, 11 Feb 2009 19:52:53 +0000 (20:52 +0100) |
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.
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 | patch | blob | history |
diff --git a/src/list_window.c b/src/list_window.c
index 4cd9a8f6009c241d2ee56700b4f4fbd24b8aeef0..c09844082ac2e20f5ec3194d5bd9b5d5cb6d5378 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
#include "match.h"
#include "command.h"
#include "colors.h"
+#include "screen.h"
+#include "i18n.h"
#include <assert.h>
#include <stdlib.h>
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;
}