Mercurial > vim
diff src/misc2.c @ 7109:fa95595fbc52 v7.4.866
commit https://github.com/vim/vim/commit/93c88e0f6a4a8f7634ed84721daf4af46fc0d5db
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 15 14:12:05 2015 +0200
patch 7.4.866
Problem: Crash when changing the 'tags' option from a remote command.
(Benjamin Fritz)
Solution: Instead of executing messages immediately, use a queue, like for
netbeans. (James Kolb)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 15 Sep 2015 14:15:05 +0200 |
parents | 6deb9d802fe4 |
children | 57c354f0115c |
line wrap: on
line diff
--- a/src/misc2.c +++ b/src/misc2.c @@ -6328,3 +6328,23 @@ has_non_ascii(s) return FALSE; } #endif + +#if defined(MESSAGE_QUEUE) || defined(PROTO) +/* + * Process messages that have been queued for netbeans or clientserver. + * These functions can call arbitrary vimscript and should only be called when + * it is safe to do so. + */ + void +parse_queued_messages() +{ +# ifdef FEAT_NETBEANS_INTG + /* Process the queued netbeans messages. */ + netbeans_parse_messages(); +# endif +# ifdef FEAT_CLIENTSERVER + /* Process the queued clientserver messages. */ + server_parse_messages(); +# endif +} +#endif