Skip to content
Browse files

ensure list window syntax color returns if syntax enabled

  • Loading branch information...
1 parent 34d07c0 commit 353bcfb2d581b9699c785d5422fdfe416c171609 @danchoi committed Aug 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/vmail.vim
View
3 lib/vmail.vim
@@ -205,6 +205,7 @@ function! s:focus_list_window()
else
exec winnr . "wincmd w"
endif
+ call s:set_list_colors()
" call feedkeys("\<c-l>") " prevents screen artifacts when user presses return too fast
" turn this off though, because it causes an annoying flash
endfunction
@@ -1054,7 +1055,7 @@ func! s:message_list_window_mappings()
nnoremap <buffer> <unique> <script> <Plug>VmailToggleWindow :call <SID>toggle_maximize_window()<cr>
autocmd CursorMoved <buffer> :redraw
- autocmd FileType vmail :call <SID>set_list_colors()
+ autocmd BufEnter,BufWinEnter <buffer> :call <SID>set_list_colors()
endfunc
func! s:compose_window_mappings()

0 comments on commit 353bcfb

Please sign in to comment.
Something went wrong with that request. Please try again.