pydave/AsyncCommand — Issue #7: redraw!
Author: moorec
Created: 2011-12-14 20:30:18+00:00
State: open

I have autoread set and use some autocmd's triggered by BufEnter,BufNew,BufRead,WinEnter,FileChangedShell,ShellCmdPost,FocusGained events to handle some menu sensitivity for a plugin that I'm working on. After executing a version control command using asynccommand#run, a file may autoread from the permissions change, and the idea is to trigger a function. I generally use the quickfix handler to display the results of such commands (something like file is now open for edit). However, the menu is not redrawn after the command (not exactly sure if the event isn't firing or it fires and the menu needs an explicit redraw). It does work if In asynccommand#tab_restore(env), I change "redraw" to "redraw!".

I'm not sure if this is something that you would want to include in the plugin or if it is only due to my own very specific usage.

Thanks,
Chad