aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-16 15:02:38 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-16 15:07:24 +0100
commit5aaf52f3617504d7211d272af86fd49f0e0d0a4e (patch)
treeb1462d770e89e2fcc8870a7022a5146f3c45e3bd /view.c
parentd58c355d2fff2cf78af1ac1cdd4a6299b16aba43 (diff)
downloadvis-5aaf52f3617504d7211d272af86fd49f0e0d0a4e.tar.gz
vis-5aaf52f3617504d7211d272af86fd49f0e0d0a4e.tar.xz
view: remove special cursor handling at end of visible area
Close #148
Diffstat (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/view.c b/view.c
index ad7d954..e417995 100644
--- 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