vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 395862652442f76f8aaac1347934a351ae4af2e4 parent e9570aae48e636561408f328af9552468e4b0f24 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 15 May 2018 13:28:14 +0200 vis: make sure zb redraws line at the bottom if possible Previously it would do nothing if the cursor was already on the last display line. Fix #697 Diffstat:
| M | view.c | | | 3 | --- |
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/view.c b/view.c @@ -625,9 +625,6 @@ void view_redraw_center(View *view) { } void view_redraw_bottom(View *view) { - Line *line = view->selection->line; - if (line == view->lastline) - return; size_t pos = view->selection->pos; view_viewport_up(view, view->height); while (pos >= view->end && view_viewport_down(view, 1));