shithub: orca

Download patch

ref: fd7a33ea28128c5877df13df60a142a71164756b
parent: 81463bbba664e4557bf242870ebbfff82efc1aa9
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri May 1 05:58:28 EDT 2020

plan9: adjust string width

--- a/plan9.c
+++ b/plan9.c
@@ -730,7 +730,7 @@
 	}
 
 	i = 0;
-	i += runesprint(linebuf, "%-10s", help.name);
+	i += runesprint(linebuf, "%-11s", help.name);
 	sprint(s, "%udx%ud", field.width, field.height);
 	i += runesprint(linebuf+i, "%-10s", s);
 	sprint(s, "%d/%d", rulers.x, rulers.y);
@@ -748,7 +748,7 @@
 	bot.y += glyphsz.y;
 
 	i = 0;
-	i += runesprint(linebuf, "%-10s", "");
+	i += runesprint(linebuf, "%-11s", "");
 	sprint(s, "%ud,%ud", cur.x, cur.y);
 	i += runesprint(linebuf+i, "%-10s", s);
 	sprint(s, "%d:%d", sel.min.x < cur.x ? -Dx(sel) : Dx(sel), sel.max.x < cur.x ? -Dy(sel) : Dy(sel));