Skip to content

Commit

Permalink
fix #55: streak labels for &wrap/&breakindent
Browse files Browse the repository at this point in the history
'breakindent' requires a special Vim patch
  • Loading branch information
justinmk committed Jan 11, 2014
1 parent e914b73 commit 875f550
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/sneak/search.vim
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func! sneak#search#new()
endf

func! s.get_onscreen_searchpattern(w)
if &wrap || (has('breakindent') && &breakindent)
return ''
endif
let wincol_lhs = a:w.leftcol "this is actually just to the _left_ of the first onscreen column.
let wincol_rhs = 2 + (winwidth(0) - sneak#util#wincol1()) + wincol_lhs
"restrict search to window
Expand Down

0 comments on commit 875f550

Please sign in to comment.