⬆️ autosave

This commit is contained in:
Nathan Sobo
2017-04-17 21:05:52 -06:00
parent 0e9581e5aa
commit cc6e127ec1
3 changed files with 3 additions and 2 deletions

View File

@@ -92,7 +92,7 @@
"autocomplete-plus": "2.35.4",
"autocomplete-snippets": "1.11.0",
"autoflow": "0.29.0",
"autosave": "0.24.2",
"autosave": "0.24.3",
"background-tips": "0.27.0",
"bookmarks": "0.44.4",
"bracket-matcher": "0.85.5",

View File

@@ -189,7 +189,7 @@ class LanguageMode
# row is a comment.
isLineCommentedAtBufferRow: (bufferRow) ->
return false unless 0 <= bufferRow <= @editor.getLastBufferRow()
@editor.tokenizedBuffer.tokenizedLines[bufferRow]?.isComment()
@editor.tokenizedBuffer.tokenizedLines[bufferRow]?.isComment() ? false
# Find a row range for a 'paragraph' around specified bufferRow. A paragraph
# is a block of text bounded by and empty line or a block of text that is not

View File

@@ -255,6 +255,7 @@ class TokenizedBuffer extends Model
new TokenizedLine({openScopes, text, tags, ruleStack, lineEnding, @tokenIterator})
tokenizedLineForRow: (bufferRow) ->
debugger
if 0 <= bufferRow <= @buffer.getLastRow()
if tokenizedLine = @tokenizedLines[bufferRow]
tokenizedLine