mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Allow for typeless decorations that apply to everything
If you are querying for `type: ‘gutter’` it will return the typeless decorations as well.
This commit is contained in:
@@ -722,7 +722,7 @@ class DisplayBuffer extends Model
|
||||
|
||||
decorationsForBufferRow: (bufferRow, decorationType) ->
|
||||
decorations = @decorations[bufferRow] ? []
|
||||
decorations = (dec for dec in decorations when dec.type is decorationType) if decorationType?
|
||||
decorations = (dec for dec in decorations when not dec.type? or dec.type is decorationType) if decorationType?
|
||||
decorations
|
||||
|
||||
decorationsForBufferRowRange: (startBufferRow, endBufferRow, decorationType) ->
|
||||
|
||||
Reference in New Issue
Block a user