LatexBox_View() blows display in terminal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Vim LaTeX Box |
In Progress
|
Undecided
|
Unassigned |
Bug Description
Hi,
I've got a problem with LatexBox_View when using vim (as opposed to gvim): I've got a mostly blank terminal after running it, and need to press Ctrl-L in order to redraw the screen and see the file content (as well as statusline, etc) again.
This is apparently due to the use of silent: even a simple ":silent exe '!true'" tiggers the same undesirable behaviour. I'm using vim 7.3, I don't know if this is version dependent, or even a bug specific to my vim binary.
Anyway, removing the silent from the last line of the function solves the problem and seems to have no undesirable side effects.
Also, it would be nice to add '>/dev/null 2>&1' to the viewer call, so that its (error) output doesn't get mixed to vim's output, or at least make an option to add it.
By the way, why to reuse 'outputfile' as the argument to shellescape(), instead of calling LatexBox_
Manuel.
Changed in vim-latex-box: | |
assignee: | nobody → David Munger (mungerd) |
Removing the silent caused GUI Vim to wait for print multiple lines and wait for the user to press Enter. So I decided to add a check on has("gui_running") to use silent or not. Could you test it please from the current trunk before I release?
About calling LatexBox_ GetOutputFile( ) twice: it was obviously not on purpose. Thanks for pointing it out.