shithub: orca

Download patch

ref: 1aec5b522d5b0ea875254adf69fa64548d6fbbad
parent: 303324cf9a39ae484e2f7de0dcf4b1fef6cb98e0
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Mar 8 16:38:00 EDT 2020

plan9: draw rulers properly in case they are in a comment

--- a/plan9.c
+++ b/plan9.c
@@ -835,7 +835,7 @@
 			if (c == '.')
 				c = styles[dotstyle].dot.r;
 
-			if (c == styles[dotstyle].dot.r && (attr & ~Mark_flag_selected) == 0) {
+			if (c == styles[dotstyle].dot.r && (attr & ~(Mark_flag_selected|Mark_flag_lock)) == 0) {
 				if ((x % rulers.x) == 0 && (y % rulers.y) == 0) {
 					rx = !!x + (x + 1) / field.width;
 					ry = !!y + (y + 1) / field.height;