From 834b10c24cbb10359f013b504dbcd1adba4f603e Mon Sep 17 00:00:00 2001 From: George Huebner Date: Tue, 18 Jun 2024 17:14:41 -0500 Subject: [PATCH] Fix: make 'xwidget-webkit-scroll-backward' scroll backwards * lisp/xwidget.el (xwidget-webkit-scroll-backward): Move hyphen out of %-formatter, changing semantics from a padding specifier to a negative sign. (Bug#71792) Copyright-paperwork-exempt: yes (cherry picked from commit 44f269d6e606acab6245d9ba12175bdd6252d63e) --- lisp/xwidget.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/xwidget.el b/lisp/xwidget.el index cca01c8cb3a..bf5987d742f 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el @@ -378,7 +378,7 @@ one char." (> (window-hscroll) 0)) (set-window-hscroll nil (- (window-hscroll) n)) (xwidget-webkit-execute-script session - (format "window.scrollBy(%-d, 0);" + (format "window.scrollBy(-%d, 0);" (* n (window-font-width))))))) (defun xwidget-webkit-scroll-top () -- 2.39.2