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
When word wrap is enabled, leading parenthesis (() and bracket ([) are not included in the word token when wrapping. Other text wrappers like quotes and braces wrap fine. This behavior causes confusion during editing, as a line break usually happens after whitespace.
In the attached screenshot, I have pointed out the parenthesis and bracket that are not wrapped. Examples with braces and quotes are also included to show the expected result.
Steps to reproduce
Start in safe mode
Ensure that word wrap is enabled from the View toolbar menu
Enter text that includes text wrapped in parenthesis and/or bracket where the line should break. For example:
Lorem ipsum dolor sit amet, consectetur adip (abcd)
Lorem ipsum dolor sit amet, consectetur adip [abcd]
Lorem ipsum dolor sit amet, consectetur adip {abcd}
Lorem ipsum dolor sit amet, consectetur adip "abcd"
Adjust the window so that the lines break.
Observe that the tokens (abcd) and [abcd] are broken between the leading symbol and the text.
Expected behavior
I expect the leading parenthesis and bracket to be included in the word token that is wrapped to the next line
Actual behavior
The leading parenthesis and/or bracket is separated from the text it wraps and is left on the previous line.
Sublime Text build number
4192
Operating system & version
macOS 15.1.1 (24B91) (Sequoia 15.1.1)
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
The text was updated successfully, but these errors were encountered:
Description of the bug
When word wrap is enabled, leading parenthesis (
(
) and bracket ([
) are not included in the word token when wrapping. Other text wrappers like quotes and braces wrap fine. This behavior causes confusion during editing, as a line break usually happens after whitespace.In the attached screenshot, I have pointed out the parenthesis and bracket that are not wrapped. Examples with braces and quotes are also included to show the expected result.
Steps to reproduce
(abcd)
and[abcd]
are broken between the leading symbol and the text.Expected behavior
I expect the leading parenthesis and bracket to be included in the word token that is wrapped to the next line
Actual behavior
The leading parenthesis and/or bracket is separated from the text it wraps and is left on the previous line.
Sublime Text build number
4192
Operating system & version
macOS 15.1.1 (24B91) (Sequoia 15.1.1)
(Linux) Desktop environment and/or window manager
No response
Additional information
No response
OpenGL context information
The text was updated successfully, but these errors were encountered: