Sometimes there is no ace folding mode

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-05-30 14:01:49 -06:00
parent 8a77a740f5
commit a7262d0f3b

View File

@@ -7,4 +7,4 @@ class FoldSuggester
@aceFoldAdaptor = new AceFoldAdaptor(@buffer)
isBufferRowFoldable: (bufferRow) ->
@aceFoldMode.getFoldWidget(@aceFoldAdaptor, null, bufferRow) == "start"
@aceFoldMode?.getFoldWidget(@aceFoldAdaptor, null, bufferRow) == "start"