From 454604e03c538827df4626e7a6a802a21d4ac978 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Sat, 2 Jan 2021 17:11:40 +0100 Subject: [PATCH] go to next item after selection in multiselect --- dmenu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmenu.c b/dmenu.c index fc9c8f3..777b41c 100644 --- a/dmenu.c +++ b/dmenu.c @@ -510,6 +510,10 @@ insert: cleanup(); exit(0); } + if (sel && sel->right && (sel = sel->right) == next) { + curr = next; + calcoffsets(); + } break; case XK_Right: if (text[cursor] != '\0') {