summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2022-07-26 14:44:36 +0100
committerBram Moolenaar <Bram@vim.org>2022-07-26 14:44:36 +0100
commit559f230fd618e51d7986d87217ff38a2eac73cef (patch)
treead8c3ddb592fe3996bd89085dce747676b7152b0 /src/testdir/check.vim
parentb03950fafa07e8b8d975eeb345ad08b8b62e67ce (diff)
patch 9.0.0078: star register is unexpectedly changed when deletingv9.0.0078
Problem: Star register is changed when deleting and both "unnamed" and "unnamedplus" are in 'clipboard'. Solution: Make the use of the star register work as documented. (Ernie Rael, closes #10669)
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index d64e8457b1..c4dca0b784 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -233,6 +233,15 @@ func CheckX11BasedGui()
endif
endfunc
+" Command to check that there are two clipboards
+command CheckTwoClipboards call CheckTwoClipboards()
+func CheckTwoClipboards()
+ " avoid changing the clipboard here, only X11 supports both
+ if !has('X11')
+ throw 'Skipped: requires two clipboards'
+ endif
+endfunc
+
" Command to check for satisfying any of the conditions.
" e.g. CheckAnyOf Feature:bsd Feature:sun Linux
command -nargs=+ CheckAnyOf call CheckAnyOf(<f-args>)