0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.0395: testing the + register fails with Motif

Problem:    Testing the + register fails with Motif.
Solution:   Also ignore the "failed to create input context" error in the
            second gvim.  Don't use msg() when it would result in a dialog.
This commit is contained in:
Bram Moolenaar
2017-03-01 18:30:34 +01:00
parent abc39ab642
commit f8ab1b14fd
4 changed files with 13 additions and 7 deletions

View File

@@ -605,7 +605,8 @@ emsg(char_u *s)
#ifdef FEAT_EVAL
/* When testing some errors are turned into a normal message. */
if (ignore_error(s))
return msg(s);
/* don't call msg() if it results in a dialog */
return msg_use_printf() ? FALSE : msg(s);
#endif
called_emsg = TRUE;