Skip to content

Commit

Permalink
fix justinmk#141: <Plug>SneakStreak should force streak-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk committed May 20, 2015
1 parent 0f03307 commit c3558f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/sneak.vim
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func! sneak#to(op, input, inputlen, count, repeatmotion, reverse, inclusive, str
endif

"enter streak-mode iff there are >=2 _additional_ on-screen matches.
let target = (2 == a:streak || (a:streak && g:sneak#opt.streak)) && !max(bounds) && s.hasmatches(2)
let target = (2 == a:streak || (a:streak && g:sneak#opt.streak && s.hasmatches(2))) && !max(bounds)
\ ? sneak#streak#to(s, is_v, a:reverse): ""

if !is_op
Expand Down
1 change: 1 addition & 0 deletions tests/test.vader
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# vim -N -u NONE -c "set rtp+=~/.vim/bundle/vim-sneak,~/.vim/bundle/vader.vim,~/.vim/bundle/vim-repeat" -c "runtime! plugin/sneak.vim plugin/vader.vim plugin/repeat.vim" -c "Vader ~/.vim/bundle/vim-sneak/tests/test.vader"
# vim -N -u NONE -c 'set rtp+=~/.vim/bundle/vim-sneak,~/.vim/bundle/vader.vim,~/.vim/bundle/vim-repeat' -c 'runtime! plugin/sneak.vim plugin/vader.vim plugin/repeat.vim' -c 'Vader ~/.vim/bundle/vim-sneak/tests/test.vader'
#
# BUG: highlight targets are bogus if &iminsert=1
# BUG: sneak cannot find ёе: in this text
Expand Down

0 comments on commit c3558f8

Please sign in to comment.