rio: fix auto compmplete candidates getting read back without prompt

This commit is contained in:
cinap_lenrek 2012-11-10 02:30:17 +01:00
parent 0df3f94ecd
commit 0ad8548b70

View file

@ -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);
}