📝 Improve naming

This commit is contained in:
Antonio Scandurra 2015-04-03 18:10:43 +02:00
parent 1cf5822d20
commit 42521900e8
2 changed files with 6 additions and 1 deletions

View File

@ -3376,7 +3376,7 @@ describe "TextEditor", ->
expect(buffer.lineForRow(0)).toBe(line2)
expect(buffer.getLineCount()).toBe(count - 2)
it "deletes only the first line when it has multiple selections", ->
it "deletes a line only once when multiple selections are on the same line", ->
line1 = buffer.lineForRow(1)
count = buffer.getLineCount()
editor.getLastCursor().moveToTop()

View File

@ -174,6 +174,11 @@ class Selection extends Model
intersectsScreenRow: (screenRow) ->
@getScreenRange().intersectsRow(screenRow)
# Public: Identifies if this selection's rows intersects with another selection's rows.
#
# * `otherSelection` A {Selection} to check against.
#
# Returns a {Boolean}
intersectsByRowWith: (otherSelection) ->
otherScreenRange = otherSelection.getScreenRange()