summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-08-16 23:14:08 +0200
committerBram Moolenaar <Bram@vim.org>2017-08-16 23:14:08 +0200
commit9e13aa7729486d79a530ecae1a7a95d10da27d61 (patch)
tree2aea0fed469486f176177d8b8fd5d16a81a3f0da /src/option.c
parent989a70c590c2bd109eb362d3a0e48cb1427ae13d (diff)
downloadvim-git-9e13aa7729486d79a530ecae1a7a95d10da27d61.tar.gz
patch 8.0.0949: winpty.dll name is fixedv8.0.0949
Problem: winpty.dll name is fixed. Solution: Add the 'winptydll' option. Make the default name depend on whether it is a 32-bit or 64-bit build. (idea by Yasuhiro Matsumoto, closes #1978)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 1877b7e47..3dc52f8e7 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3098,6 +3098,20 @@ static struct vimoption options[] =
(char_u *)NULL, PV_NONE,
#endif
{(char_u *)1L, (char_u *)0L} SCRIPTID_INIT},
+ {"winptydll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
+#if defined(WIN3264) && defined(TERMINAL)
+ (char_u *)&p_winptydll, PV_NONE, {
+# ifdef _WIN64
+ (char_u *)"winpty64.dll",
+# else
+ (char_u *)"winpty32.dll",
+# endif
+ (char_u *)0L}
+#else
+ (char_u *)NULL, PV_NONE,
+ {(char_u *)0L, (char_u *)0L}
+#endif
+ SCRIPTID_INIT},
{"winwidth", "wiw", P_NUM|P_VI_DEF,
#ifdef FEAT_WINDOWS
(char_u *)&p_wiw, PV_NONE,