diff options
author | Bram Moolenaar <bram@vim.org> | 2011-10-26 17:04:29 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2011-10-26 17:04:29 +0200 |
commit | 3013b828a091236e9e96d85d418ea6b8748a1c1a (patch) | |
tree | 5f2b1aef740e1b418bd7984c55d9cdea4c8909d9 /src | |
parent | c49fad0ecddde8bb0e4d743cd8ef46e164a59be1 (diff) | |
download | vim-3013b828a091236e9e96d85d418ea6b8748a1c1a.tar.gz |
Problem: Text formatting uses start of insert position when it should not.
(Peter Wagenaar)
Solution: Do not use Insstart when intentionally formatting.
Diffstat (limited to 'src')
-rw-r--r-- | src/edit.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -6078,6 +6078,7 @@ internal_format(textwidth, second_indent, flags, format_only, c) * Stop at first entered white when 'formatoptions' has 'v' */ while ((!fo_ins_blank && !has_format_option(FO_INS_VI)) + || (flags & INSCHAR_FORMAT) || curwin->w_cursor.lnum != Insstart.lnum || curwin->w_cursor.col >= Insstart.col) { diff --git a/src/version.c b/src/version.c index 4ce9a6d9..e01db7a0 100644 --- a/src/version.c +++ b/src/version.c @@ -715,6 +715,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 351, +/**/ 350, /**/ 349, |