Subject: bug#51652: 29.0.50; [PATCH] Fix C-r inside xwidget isearch

From: Po Lu <[email-masked]>
Date: Sun, 07 Nov 2021 14:24:23 +0800

I missed this as well.  Sorry about that.  I hope these tickets aren't
being too annoying, thanks.

>From 58656bb269e58eaaf7b83863e6ed5e34f4285f40 Mon Sep 17 00:00:00 2001
From: Po Lu <[email-masked]>
Date: Sun, 7 Nov 2021 14:22:52 +0800
Subject: [PATCH] Fix C-r inside xwidget isearch

* lisp/xwidget.el (xwidget-webkit-isearch-backward): Ask for previous
result.
---
 lisp/xwidget.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/xwidget.el b/lisp/xwidget.el
index 1e169d5650..74c236808a 100644
--- a/lisp/xwidget.el
+++ b/lisp/xwidget.el
@@ -886,7 +886,7 @@ xwidget-webkit-isearch-backward
       (xwidget-webkit-isearch--update)))
   (let ((i 0))
     (while (< i count)
-      (xwidget-webkit-next-result (xwidget-webkit-current-session))
+      (xwidget-webkit-previous-result (xwidget-webkit-current-session))
       (cl-incf i)))
   (xwidget-webkit-isearch--update t))
 
-- 
2.31.1