Hi Carlos, 2014/7/3(Thu) 5:04:10 UTC+9 Carlos Pita: > When the omnifunc provides extra info to be shown in the preview window (in > case preview is included in completeopt) there is a permanent focus switching > back and forth between the current window and the preview window, which > produces several annoying and very noticeable visual artifacts: > > 1) The window title flickers (it changes too fast so the change is perceived > as a flickering artifact). > > 2) The window name at the taskbar also flickers. > > 3) Plugins like vim-airline, which are able to show a buffer list > highlighting the current buffer, will madly switch the highlight back and > forth. > > I think an implementation which doesn't switch focus is in order.
Attached patch fixed 1) and 2). Bram, what do you think? -- Best regards, Hirohito Higashi -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
diff -r 1d3b648de738 src/popupmnu.c --- a/src/popupmnu.c Wed Jul 02 20:00:48 2014 +0200 +++ b/src/popupmnu.c Thu Jul 03 12:58:39 2014 +0900 @@ -567,7 +567,9 @@ g_do_tagpreview = 3; if (p_pvh > 0 && p_pvh < g_do_tagpreview) g_do_tagpreview = p_pvh; + ++RedrawingDisabled; resized = prepare_tagpreview(FALSE); + --RedrawingDisabled; g_do_tagpreview = 0; if (curwin->w_p_pvw)
