mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
📝 Improve naming
This commit is contained in:
parent
1cf5822d20
commit
42521900e8
@ -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()
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user