shithub: orca

Download patch

ref: 303324cf9a39ae484e2f7de0dcf4b1fef6cb98e0
parent: 6aa83c4d6c919b4f958ebc20d8f9e06653c3aab9
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Mar 8 16:34:03 EDT 2020

plan9: adjust coloring of * and haste input vs normal input

--- a/plan9.c
+++ b/plan9.c
@@ -850,7 +850,7 @@
 						bg = Dbmed;
 						fg = Dfinv;
 					}
-					if (attr & Mark_flag_input) {
+					if ((attr & Mark_flag_input) || (c == '*' && !(attr & Mark_flag_lock))) {
 						bg = Dback;
 						fg = Dfhigh;
 					} else if (attr & Mark_flag_lock) {
@@ -863,7 +863,7 @@
 					bg = Dfhigh;
 					fg = Dfinv;
 				}
-				if (attr & Mark_flag_haste_input) {
+				if ((attr & Mark_flag_haste_input) && !(attr & Mark_flag_input)) {
 					bg = Dback;
 					fg = Dbmed;
 				}