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;
case XK_Tab:
if (!sel)
return;
cursor = strnlen(sel->text, sizeof text - 1);
memcpy(text, sel->text, cursor);
text[cursor] = '\0';
match();
if (sel && sel->right && (sel = sel->right) == next) {
curr = next;
calcoffsets();
}
break;
}