vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit c932a258e7d95a9a3c6d8b42907d2466533de1e7
parent 10d89e038ca499a059d15dfc4a169d6d114913ca
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 29 Dec 2015 08:51:28 +0100

view: fix view [start,end] range calculation

This for example now correctly displays tab characters at
the very start of the visible area.

Diffstat:
Mview.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/view.c b/view.c @@ -580,12 +580,12 @@ void view_draw(View *view) { } else { if (prev_cell.len && !view_addch(view, &prev_cell)) break; + pos += prev_cell.len; prev_cell = cell; } rem -= cell.len; cur += cell.len; - pos += cell.len; memset(&cell, 0, sizeof cell); }