Snippets are not auto-indented when they are inserted.

This commit is contained in:
Corey Johnson
2012-08-09 16:21:04 -07:00
parent 65d40557ff
commit 92be14d9fa

View File

@@ -6,7 +6,7 @@ class SnippetExpansion
@editSession.selectToBeginningOfWord()
startPosition = @editSession.getCursorBufferPosition()
@editSession.transact =>
@editSession.insertText(snippet.body)
@editSession.insertText(snippet.body, autoIndent: false)
if snippet.tabStops.length
@placeTabStopAnchorRanges(startPosition, snippet.tabStops)
if snippet.lineCount > 1