tled: prefer filetype background highlight to revdir - 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 33a73d75110985d134adf5a5a23ac624b20148ee
(DIR) parent db0616444f78ec9d020218887d2254a41c575726
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Fri, 25 Dec 2015 11:58:09 +0330
led: prefer filetype background highlight to revdir
Diffstat:
M led.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/led.c b/led.c
t@@ -45,7 +45,7 @@ static void led_markrev(int n, char **chrs, int *pos, int *att)
i++;
if (dir < 0)
for (j = beg; j <= i; j++)
- att[j] = syn_merge(att[j], hl);
+ att[j] = syn_merge(hl, att[j]);
if (i == beg)
i++;
}
t@@ -230,7 +230,7 @@ static char *led_line(char *pref, char *post, char *ai, int ai_max, int *key, ch
if (!post)
post = "";
while (1) {
- led_printparts(ai, pref, uc_lastline(sbuf_buf(sb)), post, *kmap);
+ led_printparts(ai, pref, sbuf_buf(sb), post, *kmap);
c = term_read();
switch (c) {
case TK_CTL('f'):