Mercurial > vim
view src/testdir/test_ex_equal.vim @ 16021:5417a7f802ff v8.1.1016
patch 8.1.1016: MS-Windows: No color in shell when using "!" in 'guioptions
commit https://github.com/vim/vim/commit/049ca59236d5a981f23cf5dfe40f54536fe7cad2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 17 16:59:44 2019 +0100
patch 8.1.1016: MS-Windows: No color in shell when using "!" in 'guioptions
Problem: MS-Windows: No color in shell when using "!" in 'guioptions.
Solution: Don't stop termcap when using a terminal window for the shell.
(vim-jp, closes #4117)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Mar 2019 17:00:13 +0100 |
parents | a4882149b661 |
children | 08940efa6b4e |
line wrap: on
line source
" Test Ex := command. func Test_ex_equal() new call setline(1, ["foo\tbar", "bar\tfoo"]) let a = execute('=') call assert_equal("\n2", a) let a = execute('=#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('=l') call assert_equal("\n2\nfoo^Ibar$", a) let a = execute('=p') call assert_equal("\n2\nfoo bar", a) let a = execute('=l#') call assert_equal("\n2\n 1 foo^Ibar$", a) let a = execute('=p#') call assert_equal("\n2\n 1 foo bar", a) let a = execute('.=') call assert_equal("\n1", a) call assert_fails('3=', 'E16:') call assert_fails('=x', 'E488:') bwipe! endfunc