mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add comment
This commit is contained in:
@@ -758,6 +758,12 @@ class DisplayBuffer extends Model
|
||||
@removeDecorationFromBufferRow(bufferRow, decoration)
|
||||
return
|
||||
|
||||
# Finds all decorations on a buffer row that match a `decorationPattern`
|
||||
#
|
||||
# bufferRow - the {int} buffer row
|
||||
# decorationPattern - the {Object} decoration type to filter by eg. `{type: 'gutter', class: 'linter-error'}`
|
||||
#
|
||||
# Returns an {Array} of the matching decorations
|
||||
findDecorationsForBufferRow: (bufferRow, decorationPattern) ->
|
||||
return unless @decorations[bufferRow]
|
||||
decoration for decoration in @decorations[bufferRow] when @decorationMatchesPattern(decoration, decorationPattern)
|
||||
|
||||
Reference in New Issue
Block a user