       # FIXME: BUG decorationByItem should managed by per editor.
       @decorationByItem.set(item, editor.decorateMarker(marker, decorationOptions))
 
+  clearCurrentAndLineMarker: ->
+    @clearLineMarker()
+    @clearCurrent()
+
   # modify current item decoration
   # -------------------------
   highlightCurrent: ->
-    return unless @needHighlight
-    return unless @ui.isActive()
-
     if decoration = @decorationByItem.get(@ui.items.getSelectedItem())
       updateDecoration(decoration, (cssClass) -> cssClass + ' current')
 

      if decoration = @decorationByItem.get(item)
        updateDecoration(decoration, (cssClass) -> cssClass.replace(' current', ''))

  # lineMarker
  # -------------------------
  hasLineMarker: ->
    @lineMarker?

      else
        @subscriptions.add @ui.onDidStopRefreshing(@refreshAll.bind(this))

    @subscriptions.add @ui.onDidConfirm(@clearCurrentAndLineMarker.bind(this))

    @subscriptions.add @ui.onDidPreview ({editor, item}) =>
      @clearCurrentAndLineMarker()
      @drawLineMarker(editor, item)
      if @needHighlight
        @highlight(editor)
        @highlightCurrent() if @ui.isActive()

  setRegExp: (@regexp) ->

