]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - atom/packages/vim-mode/lib/view-models/search-view-model.coffee
Adds editorconfig
[rbdr/dotfiles] / atom / packages / vim-mode / lib / view-models / search-view-model.coffee
index 87872109f9470514a3922544497846a1e778223c..8e63fd2875c17b08d9d1904047ff371d64786262 100644 (file)
@@ -40,3 +40,11 @@ class SearchViewModel extends ViewModel
         atom.beep()
     super(view)
     @vimState.pushSearchHistory(@view.value)
+
+  update: (reverse) ->
+    if reverse
+      @view.classList.add('reverse-search-input')
+      @view.classList.remove('search-input')
+    else
+      @view.classList.add('search-input')
+      @view.classList.remove('reverse-search-input')