From 825910dc1d7ca774384fd9ca2be029d03ee7e600 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 27 Jun 2014 05:23:40 -0600 Subject: [PATCH] Add onlyEmpty and onlyNonEmpty decoration options --- src/editor.coffee | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/editor.coffee b/src/editor.coffee index 4d84ab148..a9eca5409 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -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)