From a27ad5aea14e3dd2432ffd9a3187386c526a3734 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 26 Oct 2011 17:04:29 +0200 Subject: 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. --- src/edit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 913a488151..0c28e0619a 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) { -- cgit v1.2.3