mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Attach precipitating bufferChange to DisplayBuffer change events
The gutter can use this to determine if the change might have altered line numbers, for example if it's inside a fold.
This commit is contained in:
@@ -13,7 +13,7 @@ class Selection
|
||||
@cursor.selection = this
|
||||
|
||||
@cursor.on 'change-screen-position.selection', (e) =>
|
||||
@screenRangeChanged() unless e.bufferChanged
|
||||
@screenRangeChanged() unless e.bufferChange
|
||||
|
||||
@cursor.on 'destroy.selection', =>
|
||||
@cursor = null
|
||||
|
||||
Reference in New Issue
Block a user