X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..06a3d6866e4f545abddd6654e490e50b623330a9:/atom/packages/vim-mode/lib/view-models/search-view-model.coffee?ds=inline diff --git a/atom/packages/vim-mode/lib/view-models/search-view-model.coffee b/atom/packages/vim-mode/lib/view-models/search-view-model.coffee index 8787210..8e63fd2 100644 --- a/atom/packages/vim-mode/lib/view-models/search-view-model.coffee +++ b/atom/packages/vim-mode/lib/view-models/search-view-model.coffee @@ -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')