From a9960f29cef722d0eef68ca3eb7963fe9dbadc26 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 7 Apr 2018 23:44:43 +0200 Subject: s:MatchString(): Reuse `s:IsTabPageLine()` I previously extracted this check to `s:IsTabPageLine()` in order to use it in `s:FilterTabPageElements()`. Eliminate it from `s:MatchString()` now and reuse the function. --- plugin/tabs_grep.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tabs_grep.vim b/plugin/tabs_grep.vim index 1e811cf..644bf44 100644 --- a/plugin/tabs_grep.vim +++ b/plugin/tabs_grep.vim @@ -16,7 +16,7 @@ endfunction function! s:MatchString(search, index, value) return match(a:value, a:search) != -1 || - \ match(a:value, '\vTab page \d+') != -1 + \ s:IsTabPageLine(a:value) endfunction function! s:IsTabPageLine(line) -- cgit v1.2.3