Sublime Forum

Inhibit removing spaces before parentheses when wrapping comments

#1

Here is an example comment:

// The instruction buffer is a shift register with three 16-bit entries:
//
// * 2x 16-bit entries form the 32-bit current instruction register (CIR) which
//   is the processor's decode window
//

When I word-wrap this with alt+Q, with wrap column set to 80 chars, the space before (CIR) disappears. I think this is trying to be smart with function calls, but I don’t normally write function names with parentheses in comments. I do use parentheses quite a bit in normal English in comments.

Is there a way to inhibit this behaviour? It’s quite time consuming to go back and re-add spaces after word wrapping.

I searched and couldn’t find anyone else mentioning this issue. I am on ST4, build 4175 (licensed).

0 Likes

#2

Your best chance is Wrap Plus for a fast workaround.

A similar issue was already reported at https://github.com/sublimehq/sublime_text/issues/6361.

1 Like

#3

Thanks, I installed Wrap Plus and that seems to “Just Work”. I agree with your assessment on the GitHub issue that this is a bug in the Sublime Text functionality though.

0 Likes