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 | a27ad5aea14e3dd2432ffd9a3187386c526a3734 (patch) | |
tree | 228ace40e23fa12be5544d23061b2cf5991895db | |
parent | 50bfb3278e78daa413fe66fc07d5c5694fbc1d77 (diff) | |
download | vim-git-a27ad5aea14e3dd2432ffd9a3187386c526a3734.tar.gz |
updated for version 7.3.351v7.3.351
Problem: Text formatting uses start of insert position when it should not.
(Peter Wagenaar)
Solution: Do not use Insstart when intentionally formatting.
-rw-r--r-- | src/edit.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 913a48815..0c28e0619 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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 4ce9a6d9c..e01db7a0a 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, |