mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
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.
This commit is contained in:
@@ -61,6 +61,20 @@ ENDTEST
|
||||
# 1 a
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
/^{/+3
|
||||
:set tw=5 fo=t2a si
|
||||
i A_
|
||||
ENDTEST
|
||||
|
||||
{
|
||||
|
||||
x a
|
||||
b
|
||||
c
|
||||
|
||||
}
|
||||
|
||||
STARTTEST
|
||||
/^{/+1
|
||||
:set tw=5 fo=qn comments=:#
|
||||
|
||||
@@ -42,6 +42,15 @@ a b
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
|
||||
x a
|
||||
b_
|
||||
c
|
||||
|
||||
}
|
||||
|
||||
|
||||
{
|
||||
# 1 a
|
||||
# b
|
||||
|
||||
Reference in New Issue
Block a user