Mercurial > vim
comparison src/testdir/test_set.vim @ 26402:9a7fb0665f9f v8.2.3732
patch 8.2.3732: "set! termcap" test fails
Commit: https://github.com/vim/vim/commit/cd2f8f0e0007bb77fc2035e6ad6227bb6661c612
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 3 21:18:14 2021 +0000
patch 8.2.3732: "set! termcap" test fails
Problem: "set! termcap" test fails.
Solution: Account for keys without a t_xx entry.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Dec 2021 22:30:04 +0100 |
parents | d26bab4f6aca |
children |
comparison
equal
deleted
inserted
replaced
26401:71b8e7b260c7 | 26402:9a7fb0665f9f |
---|---|
60 break | 60 break |
61 endif | 61 endif |
62 endfor | 62 endfor |
63 call assert_true(keys_idx < len(lines)) | 63 call assert_true(keys_idx < len(lines)) |
64 " three columns | 64 " three columns |
65 call assert_match('t_.. .*t_.. .*t_.. ', lines[keys_idx + 1]) | 65 call assert_match('<[^>]*> .*<[^>]*> .*<[^>]*> ', lines[keys_idx + 1]) |
66 | 66 |
67 let more_lines = split(execute('set! termcap'), "\n") | 67 let more_lines = split(execute('set! termcap'), "\n") |
68 for i in range(len(more_lines)) | 68 for i in range(len(more_lines)) |
69 if more_lines[i] =~ '--- Terminal keys ---' | 69 if more_lines[i] =~ '--- Terminal keys ---' |
70 break | 70 break |