Mercurial > vim
comparison src/testdir/test_gui.vim @ 20365:6bcd12791bf1 v8.2.0738
patch 8.2.0738: mouse handling in a terminal window not well tested
Commit: https://github.com/vim/vim/commit/91689ea8ae01acb3daf8ba0ee91acd729af7c84c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon May 11 22:04:53 2020 +0200
patch 8.2.0738: mouse handling in a terminal window not well tested
Problem: Mouse handling in a terminal window not well tested.
Solution: Add tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6052)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 11 May 2020 22:15:04 +0200 |
parents | 3d1de9093c01 |
children | 86333cdb8cf8 |
comparison
equal
deleted
inserted
replaced
20364:79d3567389f1 | 20365:6bcd12791bf1 |
---|---|
836 | 836 |
837 call delete('Xscriptgui') | 837 call delete('Xscriptgui') |
838 call delete('Xtestgui') | 838 call delete('Xtestgui') |
839 endfunc | 839 endfunc |
840 | 840 |
841 " Test for "!" option in 'guioptions'. Use a terminal for running external | |
842 " commands | |
843 func Test_gui_run_cmd_in_terminal() | |
844 let save_guioptions = &guioptions | |
845 set guioptions+=! | |
846 if has('win32') | |
847 let cmd = 'type' | |
848 else | |
849 " assume all the other systems have a cat command | |
850 let cmd = 'cat' | |
851 endif | |
852 let cmd = ':silent !' . cmd . " test_gui.vim\<CR>\<CR>" | |
853 call feedkeys(cmd, 'xt') | |
854 " TODO: how to check that the command ran in a separate terminal? | |
855 " Maybe check for $TERM (dumb vs xterm) in the spawned shell? | |
856 let &guioptions = save_guioptions | |
857 endfunc | |
858 | |
841 " vim: shiftwidth=2 sts=2 expandtab | 859 " vim: shiftwidth=2 sts=2 expandtab |