diff options
author | Teddy Wing | 2018-04-07 23:44:43 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-07 23:44:43 +0200 |
commit | a9960f29cef722d0eef68ca3eb7963fe9dbadc26 (patch) | |
tree | d26b5d00021fef282d4fe36b56d8d7dd6cf210f6 /plugin | |
parent | ace0ff92ab8db692f1d837a9a8caddfa943d9445 (diff) | |
download | vim-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.vim | 2 |
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) |