mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Ensure tab-stops are correctly placed on indented snippet lines
This commit is contained in:
@@ -30,7 +30,7 @@ describe "Snippets extension", ->
|
||||
|
||||
snippet t3 "With indented second line"
|
||||
line 1
|
||||
line 2
|
||||
line 2$1
|
||||
|
||||
endsnippet
|
||||
"""
|
||||
@@ -88,6 +88,7 @@ describe "Snippets extension", ->
|
||||
editor.trigger 'snippets:expand'
|
||||
expect(buffer.lineForRow(2)).toBe " if (items.length <= 1) return items; line 1"
|
||||
expect(buffer.lineForRow(3)).toBe " line 2"
|
||||
expect(editor.getCursorBufferPosition()).toEqual [3, 12]
|
||||
|
||||
describe "when the letters preceding the cursor don't match a snippet", ->
|
||||
it "inserts a tab as normal", ->
|
||||
|
||||
Reference in New Issue
Block a user