]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0048: MS-Windows: ConPTY not yet preferred v9.2.0048
authorbennyyip <yebenmy@gmail.com>
Tue, 24 Feb 2026 21:13:40 +0000 (21:13 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 24 Feb 2026 21:19:42 +0000 (21:19 +0000)
Problem:  MS-Windows: ConPTY not yet preferred
Solution: Mark ConPTY as stable starting with Windows 11 (build 22000).
          Vim will now prefer ConPTY over winpty on these systems.

fixes:  #19033
closes: #19037

Signed-off-by: bennyyip <yebenmy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt
runtime/doc/terminal.txt
runtime/doc/version9.txt
src/os_win32.c
src/version.c

index 0798934c2db08452027ff40682e407b8a20711a8..a264127822accefb61344dfc67be00c1f829bfa3 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 9.2.  Last change: 2026 Feb 21
+*options.txt*  For Vim version 9.2.  Last change: 2026 Feb 24
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -9120,8 +9120,8 @@ A jump table for the options with a short description can be found at |Q_op|.
 
        |ConPTY| support depends on the platform.  Windows 10 October 2018
        Update is the first version that supports ConPTY, however it is still
-       considered unstable.  ConPTY might become stable in the next release
-       of Windows 10.  winpty support needs to be installed.  If neither is
+       considered unstable.  ConPTY has become stable with the initial release
+       of Windows 11.  winpty support needs to be installed.  If neither is
        supported then you cannot open a terminal window.
 
                                                *'terse'* *'noterse'*
index c86fb207e4a87241eab1ddef866deb9c465ab2ef..4a2c4710cd8e2750e274da8ea5d4a78962d2f35b 100644 (file)
@@ -1,4 +1,4 @@
-*terminal.txt* For Vim version 9.2.  Last change: 2026 Feb 14
+*terminal.txt* For Vim version 9.2.  Last change: 2026 Feb 24
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -490,8 +490,8 @@ On more recent versions of MS-Windows 10 (beginning with the "October 2018
 Update"), winpty is no longer required.  On those versions, |:terminal| will use
 Windows' built-in support for hosting terminal applications, "ConPTY".  When
 ConPTY is in use, there may be rendering artifacts regarding ambiguous-width
-characters.  If you encounter any such issues, install "winpty".  Until the
-ConPTY problems have been fixed "winpty" will be preferred.
+characters.  If you encounter any such issues, install "winpty".  ConPTY
+support is considered stable with the first release of Windows 11.
 
 Environment variables are used to pass information to the running job:
     VIM_SERVERNAME     v:servername
index bd93f1bb363182f2952a3645571f0a5f9cb02f85..5c35f3a845135fd48255d0c062582939468b3086 100644 (file)
@@ -1,4 +1,4 @@
-*version9.txt* For Vim version 9.2.  Last change: 2026 Feb 16
+*version9.txt* For Vim version 9.2.  Last change: 2026 Feb 24
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -52588,7 +52588,8 @@ Popups ~
 
 Other ~
 -----
-The new |xdg.vim| script for full XDG compatibility is included
+- The new |xdg.vim| script for full XDG compatibility is included.
+- |ConPTY| support is considered stable as of Windows 11.
 
                                                        *changed-9.3*
 Changed~
index a3d66c4b9c1eda85d3ccde815970fa129b67122f..edaf7cb306ed9c7e61bef5d7afc96e18c0f79810 100644 (file)
@@ -8565,11 +8565,11 @@ mch_setenv(char *var, char *value, int x UNUSED)
 #define CONPTY_INSIDER_BUILD       MAKE_VER(10, 0, 18995)
 
 /*
- * Not stable now.
+ * Make conpty default on Windows 11
  */
-#define CONPTY_STABLE_BUILD        MAKE_VER(10, 0, 32767)  // T.B.D.
+#define CONPTY_STABLE_BUILD        MAKE_VER(10, 0, 22000)
 // Notes:
-// Win 10 22H2 Final is build 19045, it's conpty is widely used.
+// Win 10 22H2 Final is build 19045, its conpty is widely used.
 // Strangely, 19045 is newer but is a lower build number than the 2020 insider
 // preview which had a build 19587.  And, not sure how stable that was?
 // Win Server 2022 (May 10, 2022) is build 20348, its conpty is widely used.
index ceab876163dc3b8c10cab9e0f663a4e0d8346008..478b9f1bc76b80d59a2fca3ee3d09609dd4c3def 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    48,
 /**/
     47,
 /**/