You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unexpected behavior occurs in the following example.
Open a file containing these 3 characters: ([). Enter insert mode so that your cursor follows after the opening square bracket. Type ].
Expected: Since the closing parenthesis ) does not form a pair with the opening square bracket [, typing a closing square bracket ] should cause a closing square bracket to appear.
Actual: The closing parenthesis is treated as forming a pair with the opening square bracket. The cursor moves past the closing parenthesis ) and no square bracket is added.
This specifically occurs with square brackets. The issue is not present with other characters, as can be shown with the following example. Open a file containing [(]. Enter insert mode after the opening parenthesis. Type a closing parenthesis. As expected, the closing parenthesis appears, resulting in [()].
I believe this is unexpected behavior because it does not appear to be documented anywhere. I scanned every occurrence in the doc file of the character ], to no avail. If I am still missing something, please let me know.
If it is an intended feature, I believe it should be documented more explicitly, and there should be an option to disable this behavior.
The text was updated successfully, but these errors were encountered:
Unexpected behavior occurs in the following example.
Open a file containing these 3 characters:
([)
. Enter insert mode so that your cursor follows after the opening square bracket. Type]
.Expected: Since the closing parenthesis
)
does not form a pair with the opening square bracket[
, typing a closing square bracket]
should cause a closing square bracket to appear.Actual: The closing parenthesis is treated as forming a pair with the opening square bracket. The cursor moves past the closing parenthesis
)
and no square bracket is added.This specifically occurs with square brackets. The issue is not present with other characters, as can be shown with the following example. Open a file containing
[(]
. Enter insert mode after the opening parenthesis. Type a closing parenthesis. As expected, the closing parenthesis appears, resulting in[()]
.I believe this is unexpected behavior because it does not appear to be documented anywhere. I scanned every occurrence in the doc file of the character
]
, to no avail. If I am still missing something, please let me know.If it is an intended feature, I believe it should be documented more explicitly, and there should be an option to disable this behavior.
The text was updated successfully, but these errors were encountered: