Skip to content

Commit

Permalink
Slight refactor of Buffer#nearest_basis_row_from .
Browse files Browse the repository at this point in the history
  • Loading branch information
Pistos committed Sep 21, 2014
1 parent 94a3223 commit 90a9fb2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/diakonos/buffer/indentation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,11 @@ def nearest_basis_row_from(starting_row, next_line_check = true)
row_before = nearest_basis_row_from(row, false)
if row_before && @lines[row_before] =~ @indenters_next_line
row = row_before
else
break
next
end
else
break
end

break
end

row
Expand Down

0 comments on commit 90a9fb2

Please sign in to comment.