From 341ad7a6994f30f420411b01f3020a999a663f5f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 9 Oct 2010 17:23:31 +0200 Subject: updated for version 7.3.020 Problem: Cursor position wrong when joining multiple lines and 'formatoptions' contains "a". (Moshe Kamensky) Solution: Adjust cursor position for skipped indent. (Carlo Teubner) --- src/testdir/test68.in | 11 +++++++++++ src/testdir/test68.ok | 3 +++ 2 files changed, 14 insertions(+) (limited to 'src/testdir') diff --git a/src/testdir/test68.in b/src/testdir/test68.in index 94104c07b..8d0c501e2 100644 --- a/src/testdir/test68.in +++ b/src/testdir/test68.in @@ -50,6 +50,17 @@ a b #a b } +STARTTEST +/^{/+2 +:set tw& fo=a +I^^ +ENDTEST + +{ + 1aa + 2bb +} + STARTTEST :g/^STARTTEST/.,/^ENDTEST/d :1;/^Results/,$wq! test.out diff --git a/src/testdir/test68.ok b/src/testdir/test68.ok index 85f35cfca..aebe36436 100644 --- a/src/testdir/test68.ok +++ b/src/testdir/test68.ok @@ -33,3 +33,6 @@ a b #a b } + +{ 1aa ^^2bb } + -- cgit v1.2.1