This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Multi-cursor, multi-line snippets have indents eaten when certain characters are input #283
Open
Description
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Okay, so this is weird.
I have a multi-line snippet with a multi-cursor tab stop:
'\\begin{}...\\end{}':
'prefix': '\\begin'
'body': '\\\\begin{${1:env}}$2\n\t$0\n\\\\end{${1:env}}'
This works fine and properly inserts the snippet with proper indentation of the last line. However, if the next character I type is any of c d e m n o t u
(and no other letters!), the indentation on the last line gets eaten.
Here's a little video that I hope will help clarify the actual behavior:
Steps to Reproduce
Expected behavior: Should preserve the indentation on the last line.
Actual behavior: The weird thing described above.
Reproduces how often: 100%
Versions
Atom version 1.32.2, Mac OS X 10.14.1.
Metadata
Metadata
Assignees
Labels
No labels