aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-05-15 13:28:14 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-16 13:24:01 +0200
commit3d4bac1c5ff47e5b48d0941f9dcfae0c6f4ed2b5 (patch)
tree40bfa69272ef829ee4716adba6675369a8be4498 /view.c
parent4673519c93a40fe0ed6f2ee3630802cd46506d0c (diff)
downloadvis-3d4bac1c5ff47e5b48d0941f9dcfae0c6f4ed2b5.tar.gz
vis-3d4bac1c5ff47e5b48d0941f9dcfae0c6f4ed2b5.tar.xz
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 (limited to 'view.c')
-rw-r--r--view.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/view.c b/view.c
index 87240ed..1bffb4f 100644
--- 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));