fix a regression in the previous commit for tab complete
Reported by Santtu Lakkala <inz@inz.fi>, thanks!main
parent
2960a6644f
commit
4717a35cfb
2
dmenu.c
2
dmenu.c
|
@ -607,7 +607,7 @@ insert:
|
||||||
return;
|
return;
|
||||||
cursor = strnlen(sel->text, sizeof text - 1);
|
cursor = strnlen(sel->text, sizeof text - 1);
|
||||||
memcpy(text, sel->text, cursor);
|
memcpy(text, sel->text, cursor);
|
||||||
text[sizeof text - 1] = '\0';
|
text[cursor] = '\0';
|
||||||
match();
|
match();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue