Add onlyEmpty and onlyNonEmpty decoration options

This commit is contained in:
Nathan Sobo
2014-06-27 05:23:40 -06:00
parent bd238d6885
commit 825910dc1d

View File

@@ -1102,6 +1102,12 @@ class Editor extends Model
# line, or highlight.
# * onlyHead: If `true`, the decoration will only be applied to the head
# of the marker. Only applicable to the `line` and `gutter` types.
# * onlyEmpty: If `true`, the decoration will only be applied if the
# associated marker is empty. Only applicable to the `line` and
# `gutter` types.
# * onlyNonEmpty: If `true`, the decoration will only be applied if the
# associated marker is non-empty. Only applicable to the `line` and
# gutter types.
addDecorationForMarker: (marker, decoration) ->
@displayBuffer.addDecorationForMarker(marker, decoration)