milkypostman / vim-togglelist

Functions to toggle the [Location List] and the [Quickfix List] windows.
109 stars 22 forks source link

Reset status bar highlighting after displaying error message #1

Closed ypomortsev closed 12 years ago

ypomortsev commented 12 years ago

Fixes status bar being colored like an error message after the "Location List is Empty" error is shown.

milkypostman commented 12 years ago

When does this occur?

ypomortsev commented 12 years ago

After the error message is displayed -- when ToggleLocationList is invoked with no location list -- the status line remains highlighted with the ErrorMsg highlight group. Plugins that write to the status line afterwards (in my case, buftabs) without invoking additional highlighting receive the big-bold-red-error-text treatment left over from the error message.

milkypostman commented 12 years ago

Cool thanks.