aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugin/tabs_grep.vim19
1 files changed, 16 insertions, 3 deletions
diff --git a/plugin/tabs_grep.vim b/plugin/tabs_grep.vim
index 35a00fa..f7ce1b2 100644
--- a/plugin/tabs_grep.vim
+++ b/plugin/tabs_grep.vim
@@ -20,9 +20,22 @@ function! TabsGrep(search)
" echo filtered_tabs
endfunction
-function! s:MatchString(index, value, search)
- return match(a:value, a:search) != -1 ||
- \ match(a:value, '\vTab page \d+') != -1
+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
endfunction
command! -nargs=1 TabsGrep :call TabsGrep(<f-args>)