Skip to content
This repository was archived by the owner on Jan 12, 2019. It is now read-only.

Commit 09c0cea

Browse files
ZyX-ILokaltog
authored andcommitted
Use stricter matches. Also don’t count on 'ignorecase' option when matching buffers
Fixes #182. Note: don’t know what to do with LustyExplorer and vimpager: unable to get buffers with such name or filetype.
1 parent 4250505 commit 09c0cea

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

autoload/Pl/Match.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function! Pl#Match#Validate(theme, window) " {{{
3333
endif
3434

3535
for [eval, re] in matches
36-
if match(eval(eval), '\v'. re) != -1
36+
if match(eval(eval), '\v\C'. re) != -1
3737
return 1
3838
endif
3939
endfor

autoload/Powerline/Matches.vim

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
let g:Powerline#Matches#matches = {
2-
\ 'command_t' : Pl#Match#Add('bufname(winbufnr(a:window))', 'GoToFile'),
3-
\ 'bt_help' : Pl#Match#Add('getwinvar(a:window, "&bt")' , 'help'),
4-
\ 'ft_man' : Pl#Match#Add('getwinvar(a:window, "&ft")' , 'man'),
5-
\ 'ft_qf' : Pl#Match#Add('getwinvar(a:window, "&ft")' , 'qf'),
2+
\ 'command_t' : Pl#Match#Add('bufname(winbufnr(a:window))', '^GoToFile$'),
3+
\ 'bt_help' : Pl#Match#Add('getwinvar(a:window, "&bt")' , '^help$'),
4+
\ 'ft_man' : Pl#Match#Add('getwinvar(a:window, "&ft")' , '^man$'),
5+
\ 'ft_qf' : Pl#Match#Add('getwinvar(a:window, "&ft")' , '^qf$'),
66
\ 'ft_vimpager' : Pl#Match#Add('getwinvar(a:window, "&ft")' , 'vimpager'),
7-
\ 'gundo_preview' : Pl#Match#Add('bufname(winbufnr(a:window))', '__Gundo_Preview__'),
8-
\ 'gundo_tree' : Pl#Match#Add('bufname(winbufnr(a:window))', '__Gundo__'),
9-
\ 'lustyexplorer' : Pl#Match#Add('bufname(winbufnr(a:window))', '\[LustyExplorer-Buffers\]'),
10-
\ 'minibufexplorer' : Pl#Match#Add('bufname(winbufnr(a:window))', '\-MiniBufExplorer\-'),
11-
\ 'tagbar' : Pl#Match#Add('getwinvar(a:window, "&ft")' , 'tagbar'),
12-
\ 'nerdtree' : Pl#Match#Add('getwinvar(a:window, "&ft")' , 'nerdtree'),
7+
\ 'gundo_preview' : Pl#Match#Add('bufname(winbufnr(a:window))', '^__Gundo_Preview__$'),
8+
\ 'gundo_tree' : Pl#Match#Add('bufname(winbufnr(a:window))', '^__Gundo__$'),
9+
\ 'lustyexplorer' : Pl#Match#Add('bufname(winbufnr(a:window))', '\[LustyExplorer\-Buffers\]'),
10+
\ 'minibufexplorer' : Pl#Match#Add('bufname(winbufnr(a:window))', '^\-MiniBufExplorer\-$'),
11+
\ 'tagbar' : Pl#Match#Add('getwinvar(a:window, "&ft")' , '^tagbar$'),
12+
\ 'nerdtree' : Pl#Match#Add('getwinvar(a:window, "&ft")' , '^nerdtree$'),
1313
\ }

0 commit comments

Comments
 (0)