Mercurial > vim
comparison src/os_win32.c @ 20201:304015471ae9 v8.2.0656
patch 8.2.0656: MS-Windows: redrawing right screen edge may not be needed
Commit: https://github.com/vim/vim/commit/7ed8f59ae09278c666f1b43488351f9450097372
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 28 20:44:42 2020 +0200
patch 8.2.0656: MS-Windows: redrawing right screen edge may not be needed
Problem: MS-Windows: redrawing right screen edge may not be needed.
Solution: Check the build version. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/6002)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 28 Apr 2020 20:45:04 +0200 |
parents | 5888cce49574 |
children | f2e4c12b24b3 |
comparison
equal
deleted
inserted
replaced
20200:84fc9bacfd32 | 20201:304015471ae9 |
---|---|
186 static int win32_set_archive(char_u *name); | 186 static int win32_set_archive(char_u *name); |
187 | 187 |
188 static int conpty_working = 0; | 188 static int conpty_working = 0; |
189 static int conpty_type = 0; | 189 static int conpty_type = 0; |
190 static int conpty_stable = 0; | 190 static int conpty_stable = 0; |
191 static int conpty_fix_type = 0; | |
191 static void vtp_flag_init(); | 192 static void vtp_flag_init(); |
192 | 193 |
193 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) | 194 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) |
194 static int vtp_working = 0; | 195 static int vtp_working = 0; |
195 static void vtp_init(); | 196 static void vtp_init(); |
7287 * version 1909 (November 2019 update). | 7288 * version 1909 (November 2019 update). |
7288 */ | 7289 */ |
7289 #define CONPTY_1909_BUILD MAKE_VER(10, 0, 18363) | 7290 #define CONPTY_1909_BUILD MAKE_VER(10, 0, 18363) |
7290 | 7291 |
7291 /* | 7292 /* |
7293 * Stay ahead of the next update, and when it's done, fix this. | |
7294 * version ? (2020 update, temporarily use the build number of insider preview) | |
7295 */ | |
7296 #define CONPTY_NEXT_UPDATE_BUILD MAKE_VER(10, 0, 19587) | |
7297 | |
7298 /* | |
7292 * Confirm until this version. Also the logic changes. | 7299 * Confirm until this version. Also the logic changes. |
7293 * insider preview. | 7300 * insider preview. |
7294 */ | 7301 */ |
7295 #define CONPTY_INSIDER_BUILD MAKE_VER(10, 0, 18995) | 7302 #define CONPTY_INSIDER_BUILD MAKE_VER(10, 0, 18995) |
7296 | 7303 |
7332 conpty_type = 2; | 7339 conpty_type = 2; |
7333 if (ver <= CONPTY_1903_BUILD) | 7340 if (ver <= CONPTY_1903_BUILD) |
7334 conpty_type = 2; | 7341 conpty_type = 2; |
7335 if (ver < CONPTY_FIRST_SUPPORT_BUILD) | 7342 if (ver < CONPTY_FIRST_SUPPORT_BUILD) |
7336 conpty_type = 1; | 7343 conpty_type = 1; |
7344 | |
7345 if (ver >= CONPTY_NEXT_UPDATE_BUILD) | |
7346 conpty_fix_type = 1; | |
7337 } | 7347 } |
7338 | 7348 |
7339 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO) | 7349 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO) |
7340 | 7350 |
7341 static void | 7351 static void |
7620 is_conpty_stable(void) | 7630 is_conpty_stable(void) |
7621 { | 7631 { |
7622 return conpty_stable; | 7632 return conpty_stable; |
7623 } | 7633 } |
7624 | 7634 |
7635 int | |
7636 get_conpty_fix_type(void) | |
7637 { | |
7638 return conpty_fix_type; | |
7639 } | |
7640 | |
7625 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO) | 7641 #if !defined(FEAT_GUI_MSWIN) || defined(VIMDLL) || defined(PROTO) |
7626 void | 7642 void |
7627 resize_console_buf(void) | 7643 resize_console_buf(void) |
7628 { | 7644 { |
7629 CONSOLE_SCREEN_BUFFER_INFO csbi; | 7645 CONSOLE_SCREEN_BUFFER_INFO csbi; |