rio: place text at beginning of line before cursor and host point
This commit is contained in:
parent
303394314a
commit
f990a6d30a
1 changed files with 2 additions and 2 deletions
|
@ -493,8 +493,8 @@ showcandidates(Window *w, Completion *c)
|
||||||
rp = runefmtstrflush(&f);
|
rp = runefmtstrflush(&f);
|
||||||
nr = runestrlen(rp);
|
nr = runestrlen(rp);
|
||||||
|
|
||||||
/* place text at beginning of line before cursor */
|
/* place text at beginning of line before cursor and host point */
|
||||||
qline = w->q0;
|
qline = min(w->qh, w->q0);
|
||||||
while(qline>0 && w->r[qline-1] != '\n')
|
while(qline>0 && w->r[qline-1] != '\n')
|
||||||
qline--;
|
qline--;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue