vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 666375b4eb8bc1871ba51fdb1e868152e479c36a parent 4d273847f8cbedd4bf7a653ba6afbdd6ceede548 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 7 Apr 2015 14:14:03 +0200 Fix cell attributes for tabs This should fix some selection artifacts. Diffstat:
| M | window.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/window.c b/window.c @@ -163,6 +163,7 @@ static bool window_addch(Win *win, Cell *cell) { win->line->cells[win->col].data[0] = ' '; win->line->cells[win->col].data[1] = '\0'; win->line->cells[win->col].istab = true; + win->line->cells[win->col].attr = cell->attr; win->line->width++; win->col++; } @@ -195,6 +196,7 @@ static bool window_addch(Win *win, Cell *cell) { .len = 1, .width = 2, .istab = false, + .attr = cell->attr, }; }