mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
💄
This commit is contained in:
@@ -41,6 +41,13 @@ class EditSession
|
||||
scrollLeft: @getScrollLeft()
|
||||
cursorScreenPosition: @getCursorScreenPosition().serialize()
|
||||
|
||||
isEqual: (other) ->
|
||||
return false unless other instanceof EditSession
|
||||
@buffer == other.buffer and
|
||||
@scrollTop == other.getScrollTop() and
|
||||
@scrollLeft == other.getScrollLeft() and
|
||||
@getCursorScreenPosition().isEqual(other.getCursorScreenPosition())
|
||||
|
||||
getRenderer: -> @renderer
|
||||
|
||||
setScrollTop: (@scrollTop) ->
|
||||
@@ -153,11 +160,4 @@ class EditSession
|
||||
else
|
||||
positions.push(position)
|
||||
|
||||
isEqual: (other) ->
|
||||
return false unless other instanceof EditSession
|
||||
@buffer == other.buffer and
|
||||
@scrollTop == other.getScrollTop() and
|
||||
@scrollLeft == other.getScrollLeft() and
|
||||
@getCursorScreenPosition().isEqual(other.getCursorScreenPosition())
|
||||
|
||||
_.extend(EditSession.prototype, EventEmitter)
|
||||
|
||||
Reference in New Issue
Block a user