diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-19 17:40:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-19 17:40:55 -0400 |
| commit | 9f704c88a57cfb797c21c19672ea6617e9673360 (patch) | |
| tree | e16e2630d1ed35d32c9af64c7a067be09b39aec8 /src/nvim/testdir/check.vim | |
| parent | 905c2eb359fc21995c6c0151b169b43c66b287fa (diff) | |
| parent | df46f9197764b92e596ad6a5a8c297edc51dd6f6 (diff) | |
| download | rneovim-9f704c88a57cfb797c21c19672ea6617e9673360.tar.gz rneovim-9f704c88a57cfb797c21c19672ea6617e9673360.tar.bz2 rneovim-9f704c88a57cfb797c21c19672ea6617e9673360.zip | |
Merge pull request #12938 from janlazo/vim-8.1.0285
vim-patch:8.1.{285,1782,1972,2261,2263},8.2.{240,817,824,1549,1676,1696}
Diffstat (limited to 'src/nvim/testdir/check.vim')
| -rw-r--r-- | src/nvim/testdir/check.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim index 073873bcb0..e0ebe8fd49 100644 --- a/src/nvim/testdir/check.vim +++ b/src/nvim/testdir/check.vim @@ -65,3 +65,11 @@ func CheckCanRunGui() throw 'Skipped: cannot start the GUI' endif endfunc + +" Command to check that not currently using the GUI +command CheckNotGui call CheckNotGui() +func CheckNotGui() + if has('gui_running') + throw 'Skipped: only works in the terminal' + endif +endfunc |