]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.351 v7.3.351
authorBram Moolenaar <Bram@vim.org>
Wed, 26 Oct 2011 15:04:29 +0000 (17:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 26 Oct 2011 15:04:29 +0000 (17:04 +0200)
Problem:    Text formatting uses start of insert position when it should not.
            (Peter Wagenaar)
Solution:   Do not use Insstart when intentionally formatting.

src/edit.c
src/version.c

index 913a488151add6f1510c1a3ac7b3a325d31b7f90..0c28e0619afa08a89056275000ee478442ab9e63 100644 (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)
        {
index 4ce9a6d9cef46bb8ed8a8064d880a90a9f49dc54..e01db7a0a068e5c8085e43390e4181c38b0858f7 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    351,
 /**/
     350,
 /**/