mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Use ? to avoid a bug caused by falsy zeroes
This commit is contained in:
@@ -92,7 +92,8 @@ class LanguageMode
|
||||
return currentIndentation unless increaseIndentPattern = TextMateBundle.indentRegexForScope(scopes[0])
|
||||
|
||||
currentLine = @buffer.lineForRow(bufferRow)
|
||||
return currentIndentation unless precedingRow = @buffer.previousNonBlankRow(bufferRow)
|
||||
precedingRow = @buffer.previousNonBlankRow(bufferRow)
|
||||
return currentIndentation unless precedingRow?
|
||||
|
||||
precedingLine = @buffer.lineForRow(precedingRow)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user