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:
Nathan Sobo
2012-11-14 13:07:42 -07:00
parent 3b70df87a7
commit c68d5fac7d
3 changed files with 3 additions and 3 deletions

View File

@@ -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