next with tab

This commit is contained in:
tavo-wasd 2024-04-28 22:06:26 -06:00
parent 98f50190bd
commit ee82ac14a9

10
dmenu.c
View file

@ -616,12 +616,10 @@ insert:
} }
break; break;
case XK_Tab: case XK_Tab:
if (!sel) if (sel && sel->right && (sel = sel->right) == next) {
return; curr = next;
cursor = strnlen(sel->text, sizeof text - 1); calcoffsets();
memcpy(text, sel->text, cursor); }
text[cursor] = '\0';
match();
break; break;
} }