Mercurial > vim
comparison src/message.c @ 16596:2f86ca0c1e6b v8.1.1301
patch 8.1.1301: when compiled with VIMDLL some messages are not shown
commit https://github.com/vim/vim/commit/0b75f7c97cd7f2529884c48dca8edb02abda4bc5
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 8 22:28:46 2019 +0200
patch 8.1.1301: when compiled with VIMDLL some messages are not shown
Problem: When compiled with VIMDLL some messages are not shown.
Solution: Set/reset gui.in_use and gui.starting as needed. (Ken Takata,
closes #4361)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 May 2019 22:30:05 +0200 |
parents | 1b58b34d4d90 |
children | 7e733046db1d |
comparison
equal
deleted
inserted
replaced
16595:85a9352e3f45 | 16596:2f86ca0c1e6b |
---|---|
2975 { | 2975 { |
2976 #if !defined(MSWIN) || defined(FEAT_GUI_MSWIN) | 2976 #if !defined(MSWIN) || defined(FEAT_GUI_MSWIN) |
2977 int len; | 2977 int len; |
2978 #endif | 2978 #endif |
2979 | 2979 |
2980 #if (defined(UNIX) || defined(FEAT_GUI)) && (!defined(ALWAYS_USE_GUI) || !defined(VIMDLL)) | 2980 #if (defined(UNIX) || defined(FEAT_GUI)) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL) |
2981 /* On Unix use stderr if it's a tty. | 2981 /* On Unix use stderr if it's a tty. |
2982 * When not going to start the GUI also use stderr. | 2982 * When not going to start the GUI also use stderr. |
2983 * On Mac, when started from Finder, stderr is the console. */ | 2983 * On Mac, when started from Finder, stderr is the console. */ |
2984 if ( | 2984 if ( |
2985 # ifdef UNIX | 2985 # ifdef UNIX |
3078 * can be displayed in a message box. | 3078 * can be displayed in a message box. |
3079 */ | 3079 */ |
3080 void | 3080 void |
3081 mch_msg(char *str) | 3081 mch_msg(char *str) |
3082 { | 3082 { |
3083 #if (defined(UNIX) || defined(FEAT_GUI)) && (!defined(ALWAYS_USE_GUI) || !defined(VIMDLL)) | 3083 #if (defined(UNIX) || defined(FEAT_GUI)) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL) |
3084 /* On Unix use stdout if we have a tty. This allows "vim -h | more" and | 3084 /* On Unix use stdout if we have a tty. This allows "vim -h | more" and |
3085 * uses mch_errmsg() when started from the desktop. | 3085 * uses mch_errmsg() when started from the desktop. |
3086 * When not going to start the GUI also use stdout. | 3086 * When not going to start the GUI also use stdout. |
3087 * On Mac, when started from Finder, stderr is the console. */ | 3087 * On Mac, when started from Finder, stderr is the console. */ |
3088 if ( | 3088 if ( |