Skip to content

Commit

Permalink
fix #116: let <esc> pass through after handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk committed Jun 13, 2014
1 parent e0f2a63 commit 9eb89e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/sneak.vim
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func! sneak#to(op, input, inputlen, count, repeatmotion, reverse, inclusive, str
\ (s.prefix).(s.match_pattern).(s.search).'\|'.curln_pattern.(s.search))

"let user deactivate with <esc>
if maparg('<esc>', 'n') ==# ""|nnoremap <silent> <esc> :<c-u>call sneak#cancel()<cr>|endif
if maparg('<esc>', 'n') ==# ""|nmap <silent> <esc> :<c-u>call sneak#cancel()<cr><esc>|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)
Expand Down

0 comments on commit 9eb89e4

Please sign in to comment.