0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1963

Problem:    Running Win32 Vim in mintty does not work.
Solution:   Detect mintty and give a helpful error message. (Ken Takata)
This commit is contained in:
Bram Moolenaar
2016-06-26 20:37:46 +02:00
parent 52df117df7
commit 97ff9b9cff
7 changed files with 249 additions and 3 deletions

View File

@@ -19,6 +19,10 @@
# include <limits.h>
#endif
#if defined(WIN3264) && !defined(FEAT_GUI_W32)
# include "iscygpty.h"
#endif
/* Maximum number of commands from + or -c arguments. */
#define MAX_ARG_CMDS 10
@@ -2553,6 +2557,13 @@ check_tty(mparm_T *parmp)
mch_errmsg(_("Vim: Error: Failure to start gvim from NetBeans\n"));
exit(1);
}
#endif
#if defined(WIN3264) && !defined(FEAT_GUI_W32)
if (is_cygpty_used())
{
mch_errmsg(_("Vim: Error: This version of Vim does not run in a Cygwin terminal\n"));
exit(1);
}
#endif
if (!parmp->stdout_isatty)
mch_errmsg(_("Vim: Warning: Output is not to a terminal\n"));