aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
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);
}