]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix: make 'xwidget-webkit-scroll-backward' scroll backwards
authorGeorge Huebner <george@feyor.sh>
Tue, 18 Jun 2024 22:14:41 +0000 (17:14 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 1 Jul 2024 07:39:08 +0000 (09:39 +0200)
* 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

index cca01c8cb3a18647fa0af37138c1a2ef055454e9..bf5987d742fba6f9564aabd0b890bc83dbf442bf 100644 (file)
@@ -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 ()