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/proto/mark.pro | |
parent | 3d631cb0b34b03c7bdf45ad852d3644c7cf62743 (diff) |
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/proto/mark.pro')
-rw-r--r-- | src/proto/mark.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/mark.pro b/src/proto/mark.pro index 623a0599e1..150e986c52 100644 --- a/src/proto/mark.pro +++ b/src/proto/mark.pro @@ -21,7 +21,7 @@ void ex_clearjumps(exarg_T *eap); void ex_changes(exarg_T *eap); void mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_after); void mark_adjust_nofold(linenr_T line1, linenr_T line2, long amount, long amount_after); -void mark_col_adjust(linenr_T lnum, colnr_T mincol, long lnum_amount, long col_amount); +void mark_col_adjust(linenr_T lnum, colnr_T mincol, long lnum_amount, long col_amount, int spaces_removed); void cleanup_jumplist(win_T *wp, int loadfiles); void copy_jumplist(win_T *from, win_T *to); void free_jumplist(win_T *wp); |