summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-05-13 04:40:02 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-05-13 04:40:02 +0200
commitf990a6d30abe4a50d3120f513f8a6b3f6c531b2a (patch)
tree22265f7c4e72432cc984cbddb4f71be97f022001 /sys/src/cmd/rio
parent303394314aa041cf52cbb02441aca04f12aafddf (diff)
rio: place text at beginning of line before cursor and host point
Diffstat (limited to 'sys/src/cmd/rio')
-rw-r--r--sys/src/cmd/rio/wind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index b96f8b986..6fd67a559 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -493,8 +493,8 @@ showcandidates(Window *w, Completion *c)
rp = runefmtstrflush(&f);
nr = runestrlen(rp);
- /* place text at beginning of line before cursor */
- qline = w->q0;
+ /* place text at beginning of line before cursor and host point */
+ qline = min(w->qh, w->q0);
while(qline>0 && w->r[qline-1] != '\n')
qline--;