scroll-top-left: fix for xulrunner >= 23
authorJohn Foerch <jjfoerch@earthlink.net>
Thu, 17 Oct 2013 13:12:40 +0000 (17 09:12 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Thu, 17 Oct 2013 13:12:40 +0000 (17 09:12 -0400)
resolves issue450 (see http://bugs.conkeror.org/issue450 for details).

modules/commands.js

index dd13267..2123365 100644 (file)
@@ -52,8 +52,10 @@ interactive("scroll-end-of-line",
 
 interactive("scroll-top-left",
     "Scroll the current frame all the way to the top left",
-     function (I) { I.buffer.do_command("cmd_scrollTop");
-                    scroll_horiz_complete(I.buffer, -1); });
+     function (I) {
+         scroll_horiz_complete(I.buffer, -1);
+         I.buffer.do_command("cmd_scrollTop");
+     });
 
 
 function delete_window (window) {