emmetio / emmet-docs

Emmet Docs & Tutorials
http://docs.emmet.io
272 stars 62 forks source link

Extension breaks multi-selection line breaks in Brackets #37

Open purplemur opened 9 years ago

purplemur commented 9 years ago

Brackets: Release 1.4 build 1.4.0-16380 (release 273804eb3) Emmet extension: v1.2.2

Related ticket in Brackets GitHub: https://github.com/adobe/brackets/issues/11425

Basically, the issue is that when you have multiple selections using the Brackets built-in multi-select feature, and you have the Emmet extension enabled, using the carriage return behaves in an unexpected manner. The carriage returns happen in the correct places, but the cursors are passed down to the next line from where they were originally, instead of the accounting for the added lines from inserting all of the earlier carriage returns. For example, if your cursors are on lines 16, 19, and 53, they will be located on lines 17, 20, and 54, instead of 17, 22, and 56.

purplemur commented 9 years ago

Doing some more poking around, this is not occurring in .js or .css files, only in .html files. I have not tested in any other file formats.