mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
This introduces new scope setting - excludeFromParagraphSelection, that prevents extending selection to some scopes, eg. on comment.line. Previously when reformatting paragraph comment lines were selected as paragraph lines, this have led to mixing comment content into reformatted paragraph content breaking the syntax of reformatted code, eg.: some very long ... line of text # some comment some other long ... line of text As an effect we got: some very long ... ... text # some comment some other ... ... line of text The problem described above was especially visible when using ⌃Q to Reformat block of Git commit message, when below of the typed text there was a Git default comment. Also this problem could be noticeable by authors using LaTeX. This change checks whether a candidate line scope for paragraph extension has a excludeFromParagraphSelection set to true and breaks upon such line, eg. comment line. Doing Select Paragraph ⌃⌥P again will select the comment as well.