diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-12-31 23:58:24 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-12-31 23:58:24 +0100 |
commit | e1e714ef0d1f4bb8b1712795e9106e3b4ff4c7bd (patch) | |
tree | a8140991365c6a83af9d501ef7e471dc0c9160d4 /src/misc1.c | |
parent | 3d631cb0b34b03c7bdf45ad852d3644c7cf62743 (diff) | |
download | vim-git-e1e714ef0d1f4bb8b1712795e9106e3b4ff4c7bd.tar.gz |
patch 8.1.0671: cursor in the wrong column after auto-formattingv8.1.0671
Problem: Cursor in the wrong column after auto-formatting.
Solution: Check for deleting more spaces than adding. (closes #3748)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index a55275100..00a549d66 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -1705,7 +1705,7 @@ open_line( if (flags & OPENLINE_MARKFIX) mark_col_adjust(curwin->w_cursor.lnum, curwin->w_cursor.col + less_cols_off, - 1L, (long)-less_cols); + 1L, (long)-less_cols, 0); } else changed_bytes(curwin->w_cursor.lnum, curwin->w_cursor.col); |