git: 9front

Download patch

ref: e70830a872d88b842a5ec183555412faf3ac99b9
parent: bfe2e4cce116f473a3f3aaf69ce254d99596f3ac
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Mon May 13 00:40:02 EDT 2013

rio: place text at beginning of line before cursor and host point

--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -493,8 +493,8 @@
 	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--;
 
--