#ifdef FEAT_VTP
// Rewrite the character at the end of the screen line.
- if (use_vtp())
+ // See the version that was fixed.
+ if (use_vtp() && get_conpty_fix_type() < 1)
{
int i;
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)
*/
#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.
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)
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)
int has_conpty_working(void);
int get_conpty_type(void);
int is_conpty_stable(void);
+int get_conpty_fix_type(void);
void resize_console_buf(void);
/* vim: set ft=c : */