From: George Huebner Date: Tue, 18 Jun 2024 22:14:41 +0000 (-0500) Subject: Fix: make 'xwidget-webkit-scroll-backward' scroll backwards X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=834b10c24cbb10359f013b504dbcd1adba4f603e;p=emacs.git 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) --- 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 ()