Mercurial > vim
comparison src/testdir/test_termcodes.vim @ 25429:2aefea114696 v8.2.3251
patch 8.2.3251: listing builtin_gui as an available terminal is confusing
Commit: https://github.com/vim/vim/commit/0f5575d0a7316a9c9a4b02df3372a07514cd8f26
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 30 21:18:03 2021 +0200
patch 8.2.3251: listing builtin_gui as an available terminal is confusing
Problem: Listing builtin_gui as an available terminal is confusing.
Solution: Do not list builtin_gui. (Christian Brabandt, closes https://github.com/vim/vim/issues/8669,
closes #8661)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 30 Jul 2021 21:30:04 +0200 |
parents | ec71c859e94c |
children | 485c7c4afeb7 |
comparison
equal
deleted
inserted
replaced
25428:738999603812 | 25429:2aefea114696 |
---|---|
2346 \ '<End>', '<S-End>', '<C-End>', | 2346 \ '<End>', '<S-End>', '<C-End>', |
2347 \ '<Up>', '<Down>', '<Left>', '<Right>', ''], getline(1, '$')) | 2347 \ '<Up>', '<Down>', '<Left>', '<Right>', ''], getline(1, '$')) |
2348 bw! | 2348 bw! |
2349 endfunc | 2349 endfunc |
2350 | 2350 |
2351 func Test_terminal_builtin_without_gui() | |
2352 CheckNotMSWindows | |
2353 | |
2354 " builtin_gui should not be output by :set term=xxx | |
2355 let output = systemlist("TERM=dumb " .. v:progpath .. " --clean -c ':set t_ti= t_te=' -c 'set term=xxx' -c ':q!'") | |
2356 redraw! | |
2357 call map(output, {_, val -> trim(val)}) | |
2358 call assert_equal(-1, index(output, 'builtin_gui')) | |
2359 call assert_notequal(-1, index(output, 'builtin_dumb')) | |
2360 endfunc | |
2361 | |
2362 | |
2351 " vim: shiftwidth=2 sts=2 expandtab | 2363 " vim: shiftwidth=2 sts=2 expandtab |