tled: highlight the status bar only if hl is set - neatvi - [fork] simple vi-ty… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit cfb5f5f6170fa3c66566a81ce2a4d17c60c563aa | |
parent 3f5ac6a63b175a9265d3b36d28e61dd53bf843f1 | |
Author: Ali Gholami Rudi <[email protected]> | |
Date: Wed, 3 Apr 2019 02:05:14 +0430 | |
led: highlight the status bar only if hl is set | |
Reported by @tangxinfa. | |
Diffstat: | |
M led.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/led.c b/led.c | |
t@@ -132,7 +132,7 @@ static int td_set(int td) | |
void led_printmsg(char *s, int row) | |
{ | |
int td = td_set(+2); | |
- char *r = led_render(s, xleft, xleft + xcols, "---"); | |
+ char *r = led_render(s, xleft, xleft + xcols, xhl ? "---" : ""); | |
td_set(td); | |
term_pos(row, 0); | |
term_kill(); |