   hoverText: ':pencil:'
   hoverIcon: ':replace-with-register:'
   execute: ->
-    @selectTarget =>
-      @withFlashing =>
-        points = _.pluck(@editor.getSelectedBufferRanges(), 'start')
-        @editor.replaceSelectedText {}, (text) =>
-          @vimState.register.get().text ? text
-        ranges = (new Range(p, p) for p in points)
-        @editor.setSelectedBufferRanges(ranges)
+    @selectTargetWithFlashing =>
+      points = _.pluck(@editor.getSelectedBufferRanges(), 'start')
+      @editor.replaceSelectedText {}, (text) =>
+        @vimState.register.get().text ? text
+      ranges = (new Range(p, p) for p in points)
+      @editor.setSelectedBufferRanges(ranges)
     @vimState.activateNormalMode()
 
 class ToggleLineComments extends Operator

  hoverIcon: ':toggle-line-comment:'
  execute: ->
    markerByCursor = @markCursorBufferPositions()
    if @target.select()
      @withFlashing =>
        @editor.transact =>
          for s in @editor.getSelections()
            s.toggleLineComments()
    @restoreMarkedCursorPositions markerByCursor
    @vimState.activateNormalMode()


    if @target.select()
      callback()

  selectTargetWithFlashing: (callback) ->
    @selectTarget =>
      @withFlashing ->
        callback()

class Select extends Operator
  @extend()
  execute: ->
