ref: e90c1b46c8e1bddce3665b0d12bf2d101de02236
parent: 3cb575b88691ffaeff4e33b78b25e61b12e84d31
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Feb 14 21:22:48 EST 2020
plan9: show dot in place of ruler if rulers are disabled
--- a/plan9.c
+++ b/plan9.c
@@ -351,7 +351,7 @@
if ((x % gridw) == 0 && (y % gridh) == 0) {
rx = !!x + (x + 1) / field.width;
ry = !!y + (y + 1) / field.height;
- c = ruler[rulerstyle][ry*3+rx];
+ c = rulerstyle == Snone ? dot[dotstyle] : ruler[rulerstyle][ry*3+rx];
}
fg = Dflow;
} else if (!selected) {