aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-10 22:16:34 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-10 22:16:34 +0200
commit0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff (patch)
tree1bd54f0e51bf8ad2edc6aa4b4f714e9c210f207b /vis.c
parentcd89f1c9898ae02033faab34d72f2e14981088ec (diff)
downloadvis-0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff.tar.gz
vis-0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff.tar.xz
vis: improve cursor placement at EOF with enabled auto indent
Close #314
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index 9787338..e29371c 100644
--- a/vis.c
+++ b/vis.c
@@ -1138,7 +1138,7 @@ static void copy_indent_from_previous_line(Win *win, Cursor *cur) {
return;
len = text_bytes_get(text, begin, len, buf);
text_insert(text, pos, buf, len);
- view_cursors_scroll_to(cur, pos + len);
+ view_cursors_to(cur, pos + len);
free(buf);
}