vis

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

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

commit c4383df6de64e8535042c8f75543d38afc4ab045
parent de77a87b0fd566c5481ec7a95c58635c602b1366
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 16 Jan 2016 15:02:38 +0100

view: remove special cursor handling at end of visible area

Close #148

Diffstat:
Mview.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/view.c b/view.c @@ -1145,8 +1145,6 @@ void view_cursors_to(Cursor *c, size_t pos) { /* make sure we redraw changes to the very first character of the window */ if (view->start == pos) view->start_last = 0; - if (view->end == pos) - view_viewport_down(view, 1); /* set the start of the viewable region to the start of the line on which * the cursor should be placed. if this line requires more space than * available in the view then simply start displaying text at the new