tled: highlight the status bar only if hl is set - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit cfb5f5f6170fa3c66566a81ce2a4d17c60c563aa
(DIR) parent 3f5ac6a63b175a9265d3b36d28e61dd53bf843f1
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
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(-)
---
(DIR) 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();