1
0
forked from aniani/vim

updated for version 7.3.351

Problem:    Text formatting uses start of insert position when it should not.
            (Peter Wagenaar)
Solution:   Do not use Insstart when intentionally formatting.
This commit is contained in:
Bram Moolenaar
2011-10-26 17:04:29 +02:00
parent 50bfb3278e
commit a27ad5aea1
2 changed files with 3 additions and 0 deletions

View File

@@ -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)
{