aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rwxr-xr-xplugin/vim-fancy-line.vim15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugin/vim-fancy-line.vim b/plugin/vim-fancy-line.vim
index 410912d..8ec97a2 100755
--- a/plugin/vim-fancy-line.vim
+++ b/plugin/vim-fancy-line.vim
@@ -36,17 +36,17 @@ augroup MAX_FANCYLINE
36 let w:cterm_bg=synIDattr(synIDtrans(hlID(a:highlight_group)), 'bg', 'cterm') 36 let w:cterm_bg=synIDattr(synIDtrans(hlID(a:highlight_group)), 'bg', 'cterm')
37 let w:cterm_fg=synIDattr(synIDtrans(hlID(a:highlight_group)), 'fg', 'cterm') 37 let w:cterm_fg=synIDattr(synIDtrans(hlID(a:highlight_group)), 'fg', 'cterm')
38 38
39 if(w:gui_bg ==# '') | let w:gui_bg = 'NONE' | endif 39 if(w:gui_bg ==# '') | let w:gui_bg = 'NONE' | endif
40 if(w:gui_fg ==# '') | let w:gui_fg = 'NONE' | endif 40 if(w:gui_fg ==# '') | let w:gui_fg = 'NONE' | endif
41 if(w:cterm_bg ==# '') | let w:cterm_bg = 'NONE' | endif 41 if(w:cterm_bg ==# '') | let w:cterm_bg = 'NONE' | endif
42 if(w:cterm_fg ==# '') | let w:cterm_fg = 'NONE' | endif 42 if(w:cterm_fg ==# '') | let w:cterm_fg = 'NONE' | endif
43 43
44 let l:retval=a:highlight_group.'_invert' 44 let l:retval=a:highlight_group.'_invert'
45 45
46 if(1 == synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse')) 46 if(0 == synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'cterm'))
47 exec 'highlight! default '.l:retval.' ctermfg='.w:cterm_fg.' ctermbg=NONE'.' guifg='.w:gui_fg.' guibg=NONE' 47 exec 'highlight! '.l:retval.' ctermfg='.w:cterm_bg.' ctermbg=0 guifg='.w:gui_bg.' guibg=NONE'
48 else 48 else
49 exec 'highlight! default '.l:retval.' ctermfg='.w:cterm_bg.' ctermbg=NONE'.' guifg='.w:gui_bg.' guibg=NONE' 49 exec 'highlight! '.l:retval.' ctermfg='.w:cterm_fg.' ctermbg=0 guifg='.w:gui_fg.' guibg=NONE'
50 endif 50 endif
51 51
52 return l:retval 52 return l:retval
@@ -84,6 +84,7 @@ augroup MAX_FANCYLINE
84 \ .' ' 84 \ .' '
85 \ .'%#'.l:invert_group.'#' 85 \ .'%#'.l:invert_group.'#'
86 \ .g:status_sym_end 86 \ .g:status_sym_end
87 \ .'%#Ignore#'
87 \ .'%<' 88 \ .'%<'
88 \ .'' 89 \ .''
89 \ .'%=' 90 \ .'%='
@@ -155,12 +156,12 @@ augroup MAX_FANCYLINE
155 set tabline=%!UpdateTabline(g:group_tabline) 156 set tabline=%!UpdateTabline(g:group_tabline)
156 157
157 " otherwise 'bold' can mess up icon sizes and I do not know why 158 " otherwise 'bold' can mess up icon sizes and I do not know why
158 highlight! StatusLine cterm=reverse 159 " highlight! StatusLine cterm=reverse
159 " exec 'highlight! User3 guifg=#D2A032 guibg='.l:fgcolor 160 " exec 'highlight! User3 guifg=#D2A032 guibg='.l:fgcolor
160 161
161 " workaround for VertSplit looking as a repeated slash, because its an 162 " workaround for VertSplit looking as a repeated slash, because its an
162 " italic bar... 163 " italic bar...
163 highlight! VertSplit gui=NONE cterm=NONE term=NONE 164 " highlight! VertSplit gui=NONE cterm=NONE term=NONE
164 endfunction 165 endfunction
165 call ApplyColorScheme() 166 call ApplyColorScheme()
166 167
..