Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clear highlight groups on ColorScheme event

Closes #196
Fixes #153
Fixes #194
  • Loading branch information...
commit e4777ff6662297e7eafbc619439891acb543aaa2 1 parent ac8bbfd
@ZyX-I ZyX-I authored obxhdx committed
View
1  powerline/bindings/vim/plugin/powerline.vim
@@ -72,4 +72,5 @@ augroup Powerline
autocmd!
autocmd BufEnter,BufWinEnter,WinEnter,CmdwinEnter * call s:UpdateWindows(0) | redrawstatus
autocmd CmdwinLeave * call s:UpdateWindows(1)
+ autocmd ColorScheme * exec s:powerline_pycmd 'powerline.renderer.reset_highlight()'
augroup END
View
3  powerline/renderers/vim.py
@@ -44,6 +44,9 @@ def render(self, winnr, current):
statusline = super(VimRenderer, self).render(mode, winwidth, theme, segments)
return statusline
+ def reset_highlight(self):
+ self.hl_groups.clear()
+
@staticmethod
def escape(string):
return string.replace('%', '%%')
Please sign in to comment.
Something went wrong with that request. Please try again.