branch: externals/hyperbole
commit 6c5002e67061f4cc51a7e5ab7a237880d55709c6
Author: Mats Lidell <[email protected]>
Commit: GitHub <[email protected]>

    Remove not needed recursion-depth check (#417)
---
 ChangeLog               | 5 +++++
 test/hy-test-helpers.el | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f259459e94..f598e0ae02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-12-09  Mats Lidell  <[email protected]>
+
+* test/hy-test-helpers.el (hy-test-helpers:consume-input-events): Remove
+    not needed recursion-depth check.
+
 2023-12-07  Mats Lidell  <[email protected]>
 
 * test/hywconfig-tests.el (hywconfig-tests--remove-ring)
diff --git a/test/hy-test-helpers.el b/test/hy-test-helpers.el
index ddb7e95dd3..c20d35a73b 100644
--- a/test/hy-test-helpers.el
+++ b/test/hy-test-helpers.el
@@ -3,7 +3,7 @@
 ;; Author:       Mats Lidell <[email protected]>
 ;;
 ;; Orig-Date:    30-Jan-21 at 12:00:00
-;; Last-Mod:      7-Jul-23 at 17:09:59 by Mats Lidell
+;; Last-Mod:     31-Oct-23 at 22:48:26 by Mats Lidell
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -24,7 +24,7 @@
 
 (defun hy-test-helpers:consume-input-events ()
   "Use recusive-edit to consume the events kbd-key generates."
-  (run-with-timer 0.1 nil (lambda () (if (< 0 (recursion-depth)) 
(exit-recursive-edit))))
+  (run-with-timer 0.1 nil (lambda () (exit-recursive-edit)))
   (recursive-edit))
 
 (defun hy-test-helpers:should-last-message (msg)

Reply via email to