Introduction
Introduction Statistics Contact Development Disclaimer Help
tled: do not highlight if line is longer than lim - neatvi - [fork] simple vi-t…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit faba1abe11f6abdeea5b9b8da810638e5eb3f3a1
parent c5d5dede6ae7fd6678ca662be496a2dccfe5396d
Author: Ali Gholami Rudi <[email protected]>
Date: Thu, 17 Feb 2022 12:28:31 +0330
led: do not highlight if line is longer than lim
Diffstat:
M led.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/led.c b/led.c
t@@ -79,7 +79,7 @@ static char *led_render(char *s0, int cbeg, int cend, char *…
for (j = 0; j < curwid; j++)
off[led_posctx(ctx, pos[i] + j, cbeg, cend)] =…
}
- att = syn_highlight(xhl ? syn : "", s0);
+ att = syn_highlight((n <= xlim && xhl) ? syn : "", s0);
/* the attribute of \n character is used for blanks */
for (i = 0; i < n; i++)
if (chrs[i][0] == '\n')
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.