atom / snippets

Atom snippets package
MIT License
204 stars 102 forks source link

Fix detection of cursor movement within tab-stops #141

Closed maxbrunsfeld closed 9 years ago

maxbrunsfeld commented 9 years ago

Marker events changed a little in Atom 0.200. This fixes cursor movement handling to work with the new contract. It also simplifies the logic for terminating snippet expansion to match the description in the existing spec:

[The snippet expansion is terminated] when the cursor is moved beyond the bounds of the current tab stop.

Fixes #139