Ticket #24 (closed defect: fixed)
QuickFixCmdPost autocommand is ran on every buffer
| Reported by: | Masse | Owned by: | claus |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | --- | Version: | |
| Keywords: | Cc: |
Description
The au QuickFixCmdPost make if autocommand on line 177 is ran on every buffer, whether or not they are haskell buffers or not. This causes errors on filetypes other than haskell, as the functions and variables are declared as local to a buffer and therefore not declared for nothing else than haskell buffers. Besides the event only makes sense on haskell sources.
Way to reproduce: vim test.hs :e test.py :make <observe errors>
Suggestion: Make it buffer local, so that the autocommand is launched only on relevant buffers. However as far as I know you can't both pattern match and make it buffer-local, but personally I'd still prefer having cache updated after every quickfix than getting errors after trying to :make on non-haskell buffers.
