aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/tabs_grep.vim17
1 files changed, 2 insertions, 15 deletions
diff --git a/plugin/tabs_grep.vim b/plugin/tabs_grep.vim
index f7ce1b2..8b98f1b 100644
--- a/plugin/tabs_grep.vim
+++ b/plugin/tabs_grep.vim
@@ -21,21 +21,8 @@ function! TabsGrep(search)
endfunction
function! s:MatchString(search, index, value)
- " let matched = match(a:value, a:search) != -1 ||
- " \ match(a:value, '\vTab page \d+') != -1
- " let matched = 0
- " \ || 1
- " return matched
- " return (
- " \
- " \ match(a:value, '\vTab page \d+') != -1
- " \ )
- " return match(a:value, a:search) != -1 ||
- " \ match(a:value, '\vTab page \d+') != -1
- echo 'test'
- echo a:search
- return 0 ||
- \ 1
+ return match(a:value, a:search) != -1 ||
+ \ match(a:value, '\vTab page \d+') != -1
endfunction
command! -nargs=1 TabsGrep :call TabsGrep(<f-args>)