mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
previousNonBlankRow returns null if passed row 0
This commit is contained in:
@@ -327,6 +327,8 @@ class Buffer
|
||||
not /\S/.test @lineForRow(row)
|
||||
|
||||
previousNonBlankRow: (startRow) ->
|
||||
return null if startRow == 0
|
||||
|
||||
startRow = Math.min(startRow, @getLastRow())
|
||||
for row in [(startRow - 1)..0]
|
||||
return row unless @isRowBlank(row)
|
||||
|
||||
Reference in New Issue
Block a user