diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-10 22:16:34 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-10 22:16:34 +0200 |
| commit | 0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff (patch) | |
| tree | 1bd54f0e51bf8ad2edc6aa4b4f714e9c210f207b | |
| parent | cd89f1c9898ae02033faab34d72f2e14981088ec (diff) | |
| download | vis-0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff.tar.gz vis-0ac9c6210b3b08b2e8a9e7e4de387abcef9afcff.tar.xz | |
vis: improve cursor placement at EOF with enabled auto indent
Close #314
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
