branch: externals/hyperbole
commit 17a3d87b6ebb4264b46cbcef6aa116a5b14219d6
Author: Mats Lidell <[email protected]>
Commit: Mats Lidell <[email protected]>

    Avoid prior tests kill commands to affect kill ring
---
 test/hui-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/hui-tests.el b/test/hui-tests.el
index 7384d08f26..70ded37c90 100644
--- a/test/hui-tests.el
+++ b/test/hui-tests.el
@@ -3,7 +3,7 @@
 ;; Author:       Mats Lidell <[email protected]>
 ;;
 ;; Orig-Date:    30-Jan-21 at 12:00:00
-;; Last-Mod:     19-Jan-25 at 00:25:05 by Mats Lidell
+;; Last-Mod:     19-Jan-25 at 00:46:05 by Mats Lidell
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -604,6 +604,7 @@ Ensure modifying the button but keeping the label does not 
create a double label
           (insert "a")
           (kotl-mode:newline 1)
           (insert "b")
+          (setq last-command #'ignore)
           (hui-kill-ring-save (region-beginning) (region-end))
           (should (string= (current-kill 0 t) "a\nb")))
       (hy-delete-file-and-buffer kotl-file))))

Reply via email to