From 44c1c04ddb000bd03c6e8851dcdef07fd8c329ff Mon Sep 17 00:00:00 2001
From: Christian Brabandt <cb@256bit.org>
Date: Mon, 17 Feb 2025 22:26:00 +0100
Subject: [PATCH] patch 9.1.1120: tests: Test_registers fails

Problem:  tests: Test_registers fails
          (T.J. Townsend, after v9.1.1115)
Solution: require clipboard feature

Signed-off-by: Christian Brabandt <cb@256bit.org>
---
 src/testdir/test_registers.vim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/testdir/test_registers.vim b/src/testdir/test_registers.vim
index 13127022666e04..ee59ecb3042300 100644
--- a/src/testdir/test_registers.vim
+++ b/src/testdir/test_registers.vim
@@ -931,6 +931,7 @@ endfunc
 
 " This caused use-after-free
 func Test_register_redir_display()
+  CheckFeature clipboard
   " don't touch the clipboard, so only perform this, when the clipboard is not working
   if has("clipboard_working")
     throw "Skipped: skip touching the clipboard register!"
