mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Rename 'selection-change' to 'selection:changed'
This commit is contained in:
@@ -22,7 +22,7 @@ class Gutter extends View
|
||||
editor = @editor()
|
||||
highlightLines = => @highlightLines()
|
||||
editor.on 'cursor:moved', highlightLines
|
||||
editor.on 'selection-change', highlightLines
|
||||
editor.on 'selection:changed', highlightLines
|
||||
@on 'click', '.line-number', (e) =>
|
||||
row = parseInt($(e.target).text()) - 1
|
||||
position = new Point(row, 0)
|
||||
|
||||
@@ -22,7 +22,7 @@ class SelectionView extends View
|
||||
@clearRegions()
|
||||
range = @getScreenRange()
|
||||
|
||||
@trigger 'selection-change'
|
||||
@trigger 'selection:changed'
|
||||
@editor.highlightFoldsContainingBufferRange(@getBufferRange())
|
||||
return if range.isEmpty()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user