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') {