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.
Contiguous tabstops not working as expected (2nd selects part of 1st) #236
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
Backspacing on second tabstop deletes part of text in first tabstop when tabstops are contiguous.
Steps to Reproduce
- Create a simple "foo" snippet, such as:
"foo":
prefix: "foo"
body: """
${2:bar}${3:baz}
"""
- Open a new file and change the syntax to the one the snippet was placed under.
- Activate the "foo" snippet
- Type something of 2 characters or more to replace "bar" ("xyzz" for this example)
- Tab to "baz"
Expected behavior: [What you expect to happen]
Only "baz" should be selected for replacement
Actual behavior: [What actually happens]
"yzzbaz" is selected for replacement. Only the first character of the first tabstop replacement ("x") is left unselected.
Reproduces how often: [What percentage of the time does it reproduce?]
100%
Versions
Atom 1.17.0
MacOs Sierra 10.12.5