aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2018-04-07 23:44:43 +0200
committerTeddy Wing2018-04-07 23:44:43 +0200
commita9960f29cef722d0eef68ca3eb7963fe9dbadc26 (patch)
treed26b5d00021fef282d4fe36b56d8d7dd6cf210f6 /plugin
parentace0ff92ab8db692f1d837a9a8caddfa943d9445 (diff)
downloadvim-tabs-grep-a9960f29cef722d0eef68ca3eb7963fe9dbadc26.tar.bz2
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.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/tabs_grep.vim2
1 files changed, 1 insertions, 1 deletions
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)