Mercurial > vim
diff src/message.c @ 11012:ae2de10e8398 v8.0.0395
patch 8.0.0395: testing the + register fails with Motif
commit https://github.com/vim/vim/commit/f8ab1b14fd972a093e0c12146dd3becd511eb519
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 1 18:30:34 2017 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 01 Mar 2017 18:45:04 +0100 |
parents | b3601a8eb679 |
children | 4e7308525fe7 |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -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;