next with tab
This commit is contained in:
parent
98f50190bd
commit
ee82ac14a9
1 changed files with 4 additions and 6 deletions
10
dmenu.c
10
dmenu.c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue