diff src/testdir/check.vim @ 17557:4a22102fda8f v8.1.1776

patch 8.1.1776: text added with a job isn't displayed commit https://github.com/vim/vim/commit/4641a122f2ffb820ec6d05526532ab38930c5286 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 29 22:10:23 2019 +0200 patch 8.1.1776: text added with a job isn't displayed Problem: Text added with a job to another buffer isn't displayed. Solution: Update topline after adding a line. (closes https://github.com/vim/vim/issues/4745)
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Jul 2019 22:15:04 +0200
parents 8e9e9124c7a2
children d7708560b77c
line wrap: on
line diff
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -21,3 +21,19 @@ func CheckFunction(name)
     throw 'Skipped: ' .. a:name .. ' function missing'
   endif
 endfunc
+
+" Command to check for running on MS-Windows
+command CheckMSWindows call CheckMSWindows()
+func CheckMSWindows()
+  if !has('win32')
+    throw 'Skipped: only works on MS-Windows'
+  endif
+endfunc
+
+" Command to check for running on Unix
+command CheckUnix call CheckUnix()
+func CheckUnix()
+  if !has('unix')
+    throw 'Skipped: only works on Unix'
+  endif
+endfunc