       point = @getCursorBufferPosition()
       pattern = getWordPatternAtBufferPosition(@editor, point, singleNonWordChar: true)
     @occurrenceManager.addPattern(pattern)
+
+  resetOccurrencePattern: ->
+    @occurrenceManager.resetPatterns()
 
   # target is TextObject or Motion to operate on.
   setTarget: (@target) ->

    {@mutationManager, @occurrenceManager, @persistentSelection} = @vimState

    # If occurrence property is set at this timing and there is no preset-occurrence marker.
    # treat `occurrence` is BOUNDED to operator itself so cleanup on each finish.
    if @occurrence and not @occurrenceManager.hasMarkers()
      @onDidResetOperationStack =>
        @occurrenceManager.resetPatterns()

    @initialize()
    @onDidSetOperatorModifier(@setModifier.bind(this))

      @addOccurrencePattern()

    # To repoeat(`.`) operation where multiple occurrence patterns was set.
    # Here we save patterns which represent unioned regex which @occurrenceManager knows.
    @patternForOccurrence ?= @occurrenceManager.buildPattern()

    @occurrenceManager.select()
