Mercurial > vim
comparison src/testdir/test_functions.vim @ 28921:995bc7ba8d5b v8.2.4983
patch 8.2.4983: colors test fails in the GUI
Commit: https://github.com/vim/vim/commit/b0855f5324b348921d412d97193e8c8bc3b5d1dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 20 10:39:18 2022 +0100
patch 8.2.4983: colors test fails in the GUI
Problem: Colors test fails in the GUI.
Solution: Reset g:terminal_ansi_colors.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 May 2022 11:45:03 +0200 |
parents | 99c1356f4210 |
children | 644b0f0541de |
comparison
equal
deleted
inserted
replaced
28920:6e62210532e0 | 28921:995bc7ba8d5b |
---|---|
2679 else | 2679 else |
2680 let cmd = "ls" | 2680 let cmd = "ls" |
2681 endif | 2681 endif |
2682 call assert_fails('call term_start("' .. cmd .. '", #{term_finish: "close"' | 2682 call assert_fails('call term_start("' .. cmd .. '", #{term_finish: "close"' |
2683 \ .. ', ansi_colors: range(16)})', 'E475:') | 2683 \ .. ', ansi_colors: range(16)})', 'E475:') |
2684 unlet g:terminal_ansi_colors | |
2684 endif | 2685 endif |
2685 | 2686 |
2686 " type() | 2687 " type() |
2687 call assert_equal(v:t_list, type(range(5))) | 2688 call assert_equal(v:t_list, type(range(5))) |
2688 | 2689 |