updated for version 7.4.052
Problem: With 'fo' set to "a2" inserting a space in the first column may
cause the cursor to jump to the previous line.
Solution: Handle the case when there is no comment leader properly. (Tor
Perkins) Also fix that cursor is in the wrong place when spaces
get replaced with a Tab.
diff --git a/src/testdir/test68.in b/src/testdir/test68.in
index e79aed5..ceaf9af 100644
--- a/src/testdir/test68.in
+++ b/src/testdir/test68.in
@@ -62,6 +62,20 @@
}
STARTTEST
+/^{/+3
+:set tw=5 fo=t2a si
+i A_
+ENDTEST
+
+{
+
+ x a
+ b
+ c
+
+}
+
+STARTTEST
/^{/+1
:set tw=5 fo=qn comments=:#
gwap
diff --git a/src/testdir/test68.ok b/src/testdir/test68.ok
index 7ec93e6..b3726a0 100644
--- a/src/testdir/test68.ok
+++ b/src/testdir/test68.ok
@@ -43,6 +43,15 @@
{
+
+ x a
+ b_
+ c
+
+}
+
+
+{
# 1 a
# b
}