From 0c17ec914f67ddce353e79c972c9dd098a09281b Mon Sep 17 00:00:00 2001 From: cancel Date: Sun, 2 Dec 2018 15:29:08 +0900 Subject: [PATCH] Change tui styling of locking inputs --- tui_main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tui_main.c b/tui_main.c index 8c03435..ffc2d52 100644 --- a/tui_main.c +++ b/tui_main.c @@ -114,8 +114,13 @@ static chtype chtype_of_cell(Glyph g, Mark m) { attr = A_bold | Cdef_normal; break; } - if (gclass != Glyph_class_comment && (m & Mark_flag_lock)) { - attr = A_dim | Cdef_normal; + if (gclass != Glyph_class_comment) { + if ((m & (Mark_flag_lock | Mark_flag_input)) == + (Mark_flag_lock | Mark_flag_input)) { + attr = A_normal | Cdef_normal; + } else if (m & Mark_flag_lock) { + attr = A_dim | Cdef_normal; + } } if (m & Mark_flag_output) { attr = A_reverse;