patch 9.1.1522: tests: still some ANSI escape sequences in test output

Commit: 
https://github.com/vim/vim/commit/bcb06c92c464d0d593334509323caacea64e88cf
Author: Christian Brabandt <c...@256bit.org>
Date:   Mon Jul 7 20:03:03 2025 +0200

    patch 9.1.1522: tests: still some ANSI escape sequences in test output
    
    Problem:  tests: still some ANSI escape sequences in test messages output
    Solution: update the cleanup regexp to also handle those ANSI escape
              sequences: `<esc>|2h` and `<esc>|31H` like in this log output:
    
    ```
    2025-07-05T20:02:47.6350409Z <esc>|2hExecuted 171 tests in   4.739708 
seconds<esc>|31H
    ```
    
    related: #17677
    
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/runtest.vim b/src/testdir/runtest.vim
index f97c43293..5028a85f6 100644
--- a/src/testdir/runtest.vim
+++ b/src/testdir/runtest.vim
@@ -540,7 +540,7 @@ func FinishTesting()
   split messages
   call append(line('$'), '')
   call append(line('$'), 'From ' . g:testname . ':')
-  call append(line('$'), s:messages->map({_, val -> substitute(val, 
'\%x1b\[\d\?m', '', 'g')}))
+  call append(line('$'), s:messages->map({_, val -> substitute(val, 
'\%x1b[[|]\(\d\?\|\d\+\)[hm]', '', 'g')}))
   write
 
   qall!
diff --git a/src/version.c b/src/version.c
index e87aa4ecd..ba1034138 100644
--- a/src/version.c
+++ b/src/version.c
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1522,
 /**/
     1521,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1uYqMo-0098NO-RI%40256bit.org.

Raspunde prin e-mail lui