mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Change editor-selection-change event name to selection-change
This commit is contained in:
@@ -1596,7 +1596,7 @@ describe "Editor", ->
|
||||
expect(miniEditor.find('.line.cursor-line').length).toBe 0
|
||||
|
||||
|
||||
fdescribe "gutter line highlighting", ->
|
||||
describe "gutter line highlighting", ->
|
||||
beforeEach ->
|
||||
editor.attachToDom(heightInLines: 5.5)
|
||||
|
||||
|
||||
@@ -344,7 +344,7 @@ class Editor extends View
|
||||
@gutter.addClass('drop-shadow')
|
||||
|
||||
@on 'cursor-move', => @highlightCursorLine()
|
||||
@on 'editor-selection-change', => @highlightCursorLine()
|
||||
@on 'selection-change', => @highlightCursorLine()
|
||||
|
||||
selectOnMousemoveUntilMouseup: ->
|
||||
moveHandler = (e) => @selectToScreenPosition(@screenPositionFromMouseEvent(e))
|
||||
@@ -419,7 +419,7 @@ class Editor extends View
|
||||
@trigger 'editor-path-change'
|
||||
|
||||
@activeEditSession.getSelection().on 'change-screen-range', =>
|
||||
@trigger 'editor-selection-change'
|
||||
@trigger 'selection-change'
|
||||
|
||||
@trigger 'editor-path-change'
|
||||
@renderWhenAttached()
|
||||
|
||||
@@ -19,7 +19,7 @@ class Gutter extends View
|
||||
editor = @editor()
|
||||
highlightCursorLine = => @highlightCursorLine()
|
||||
editor.on 'cursor-move', highlightCursorLine
|
||||
editor.on 'editor-selection-change', highlightCursorLine
|
||||
editor.on 'selection-change', highlightCursorLine
|
||||
@calculateWidth()
|
||||
|
||||
editor: ->
|
||||
|
||||
Reference in New Issue
Block a user