tled: prefer filetype background highlight to revdir - neatvi - [fork] simple vi-type editor with UTF-8 support
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 33a73d75110985d134adf5a5a23ac624b20148ee
parent db0616444f78ec9d020218887d2254a41c575726
Author: Ali Gholami Rudi 
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(-)
---
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'):