summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-28 20:44:42 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-28 20:44:42 +0200
commit7ed8f59ae09278c666f1b43488351f9450097372 (patch)
tree8a01bda429bdf136a4ab5568f0bf033456ed5217 /src/os_win32.c
parent224a5f17c6ec9e98322a4c6792ce4f9bb31a4cce (diff)
downloadvim-git-7ed8f59ae09278c666f1b43488351f9450097372.tar.gz
patch 8.2.0656: MS-Windows: redrawing right screen edge may not be neededv8.2.0656
Problem: MS-Windows: redrawing right screen edge may not be needed. Solution: Check the build version. (Nobuhiro Takasaki, closes #6002)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index 85efc5266..e4d8135ca 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -188,6 +188,7 @@ static int win32_set_archive(char_u *name);
static int conpty_working = 0;
static int conpty_type = 0;
static int conpty_stable = 0;
+static int conpty_fix_type = 0;
static void vtp_flag_init();
#if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL)
@@ -7289,6 +7290,12 @@ mch_setenv(char *var, char *value, int x UNUSED)
#define CONPTY_1909_BUILD MAKE_VER(10, 0, 18363)
/*
+ * Stay ahead of the next update, and when it's done, fix this.
+ * version ? (2020 update, temporarily use the build number of insider preview)
+ */
+#define CONPTY_NEXT_UPDATE_BUILD MAKE_VER(10, 0, 19587)
+
+/*
* Confirm until this version. Also the logic changes.
* insider preview.
*/
@@ -7334,6 +7341,9 @@ vtp_flag_init(void)
conpty_type = 2;
if (ver < CONPTY_FIRST_SUPPORT_BUILD)
conpty_type = 1;
+
+ if (ver >= CONPTY_NEXT_UPDATE_BUILD)
+ conpty_fix_type = 1;
}
#if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO)
@@ -7622,6 +7632,12 @@ is_conpty_stable(void)
return conpty_stable;
}
+ int
+get_conpty_fix_type(void)
+{
+ return conpty_fix_type;
+}
+
#if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO)
void
resize_console_buf(void)