Tuesday, April 14, 2020

balloon expressions and changing workspace

Hello:

I can use a balloon expression (onlookers: see :help 'bexpr') that
creates a small balloon text -- but it persists when I change workspaces
(Scientific Linux and I also use mate: yum -y groupinstall mate-desktop)
(ie. ctrl-alt-arrow).  When its displayed on the wrong workspace, its
annoying and sometimes covering up something I need to see.  Personally,
I think vim ought to remove any balloon texts when the workspace is
changed automatically; but nonetheless, it ought to be possible for me
to clear them.  I've tried using FocusLost (the only autocmd event that
fires on a workspace change), but I can't seem to clear the balloon. 
I've tried having the autocmd set nobeval and having a test in the
balloon expression function do a if &beval == 0 | let mesg= "" | endif
(and the function returns mesg).

No luck, the balloon insists on being displayed in the wrong workspace. 
Any known workarounds?

Chip Campbell

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/68bab8f1-9447-3782-49dc-8b68fbdc1a3a%40drchip.org.

No comments: