summaryrefslogtreecommitdiffstats
path: root/source/dialogs/script.c
diff options
context:
space:
mode:
authorQC <qball@gmpclient.org>2015-05-03 13:04:03 +0200
committerQC <qball@gmpclient.org>2015-05-03 13:04:03 +0200
commit8d4e1ee8fa1b6cc2bdd97e8dc5bc47e0a4896b71 (patch)
treeec2b786b4ea1510159de9b557f3ebf9c6ff701f9 /source/dialogs/script.c
parenta974db887a88dfd56546bf9af6c7a7e762ba6746 (diff)
Rasi patch, allowing special keys, modifying return value.
In dmenu pressing alt-[1-9 will return the selected entry and set the return value to the pressed number.
Diffstat (limited to 'source/dialogs/script.c')
-rw-r--r--source/dialogs/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/dialogs/script.c b/source/dialogs/script.c
index e336b2c4..f96f0115 100644
--- a/source/dialogs/script.c
+++ b/source/dialogs/script.c
@@ -131,7 +131,7 @@ static SwitcherMode script_mode_result ( int mretv, char **input, unsigned int s
retv = PREVIOUS_DIALOG;
}
else if ( ( mretv & MENU_QUICK_SWITCH ) ) {
- retv = selected_line;
+ retv = ( mretv & MENU_LOWER_MASK );
}
else if ( ( mretv & MENU_OK ) && rmpd->cmd_list[selected_line] != NULL ) {
new_list = execute_executor ( sw, rmpd->cmd_list[selected_line], &new_length );