aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/check.vim
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-08-02 20:19:48 +0200
committerGitHub <noreply@github.com>2020-08-02 20:19:48 +0200
commit4ed5204bc9d5811cd45209476ac1b9e2c2b74146 (patch)
treeb3d811af95576072856a07f0dffcb86c76de6604 /src/nvim/testdir/check.vim
parent480515e4426865c37a42a452432b3463f0ab40a7 (diff)
parentea515f8ca1fa63cfad516a956cd78ef371f91955 (diff)
downloadrneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.tar.gz
rneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.tar.bz2
rneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.zip
Merge pull request #12665 from janlazo/vim-8.2.1254
vim-patch:8.0.1774,8.1.{192,194,255,264,1202,2172,2340},8.2.{62,71,72,1004,1254,1259,1265,1267,1292,1295}
Diffstat (limited to 'src/nvim/testdir/check.vim')
-rw-r--r--src/nvim/testdir/check.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/check.vim b/src/nvim/testdir/check.vim
new file mode 100644
index 0000000000..57a8eb57b8
--- /dev/null
+++ b/src/nvim/testdir/check.vim
@@ -0,0 +1,11 @@
+source shared.vim
+source term_util.vim
+
+" Command to check that making screendumps is supported.
+" Caller must source screendump.vim
+command CheckScreendump call CheckScreendump()
+func CheckScreendump()
+ if !CanRunVimInTerminal()
+ throw 'Skipped: cannot make screendumps'
+ endif
+endfunc