Skip to content

Commit c66e217

Browse files
committed
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.
1 parent 78997dd commit c66e217

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/edit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6078,6 +6078,7 @@ internal_format(textwidth, second_indent, flags, format_only, c)
60786078
* Stop at first entered white when 'formatoptions' has 'v'
60796079
*/
60806080
while ((!fo_ins_blank && !has_format_option(FO_INS_VI))
6081+
|| (flags & INSCHAR_FORMAT)
60816082
|| curwin->w_cursor.lnum != Insstart.lnum
60826083
|| curwin->w_cursor.col >= Insstart.col)
60836084
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
351,
717719
/**/
718720
350,
719721
/**/

0 commit comments

Comments
 (0)