rio: fix auto compmplete candidates getting read back without prompt
This commit is contained in:
parent
0df3f94ecd
commit
0ad8548b70
1 changed files with 3 additions and 1 deletions
|
@ -499,7 +499,9 @@ showcandidates(Window *w, Completion *c)
|
|||
nr = runestrlen(rp);
|
||||
|
||||
q0 = w->q0;
|
||||
q0 += winsert(w, rp, runestrlen(rp), qline) - qline;
|
||||
q0 += winsert(w, rp, nr, qline) - qline;
|
||||
if(q0 >= w->qh)
|
||||
w->qh += nr;
|
||||
free(rp);
|
||||
wsetselect(w, q0+nr, q0+nr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue