Skip to content

Commit

Permalink
Fix(again) highlight function to work with options
Browse files Browse the repository at this point in the history
  • Loading branch information
kassio committed Jun 3, 2014
1 parent 53b714d commit 63dbfed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -119,3 +119,8 @@ with versions that does not have this variable.

* Fixes highlight function to work when user passes options. Ex.: Ack -i test
Thank's @mannih. (#131, #134)

### 1.0.7

* Fixes highlight function to work when passes more than one option, or options
with double dashes(--option) Thank's to @MiguelLatorre and @mannih
2 changes: 1 addition & 1 deletion autoload/ack.vim
Expand Up @@ -111,7 +111,7 @@ function! s:highlight(args)
return
endif

let @/ = matchstr(a:args, "\\v\\zs[^-'\" ]\\w+\>|['\"]\\zs.{-}\\ze['\"]")
let @/ = matchstr(a:args, "\\v(-{1,2})@<!\\s\\zs\\w+\>|['\"]\\zs.{-}\\ze['\"]")
call feedkeys(":let &l:hlsearch=1 \| echo \<CR>", "n")
endfunction

Expand Down

0 comments on commit 63dbfed

Please sign in to comment.