When you try to use this snippet and then undo it, the file will scroll at the beginning every time you move the cursor until you close the file or redo the snippet undoing.
Steps to Reproduce
Use the above snippets file
Open large .js file (more than one screen of code)
Type lovTAB to use the snippet somewhere not on the first screen of code
Press Ctrl/Cmd + Z to undo the snippet
Expected behavior:
The text reverts to lov and the screen stays focused as it is.
Actual behavior:
The text reverts to lov BUT the screen scrolls at the beginning of the file. Every subsequent cursor move will continue to scroll the file up to the first line until you close the file or redo the snippet undoing.
Description
Having the following snippets file:
When you try to use this snippet and then undo it, the file will scroll at the beginning every time you move the cursor until you close the file or redo the snippet undoing.
Steps to Reproduce
lov
TAB to use the snippet somewhere not on the first screen of codeExpected behavior:
The text reverts to
lov
and the screen stays focused as it is.Actual behavior:
The text reverts to
lov
BUT the screen scrolls at the beginning of the file. Every subsequent cursor move will continue to scroll the file up to the first line until you close the file or redo the snippet undoing.Reproduces how often:
Every time
Versions
Atom: 1.15.0-beta1 x64 (safe mode) Snippets: 1.0.5