[Pkg-mozext-commits] [greasemonkey] 01/15: Scratchpad - editing a script - the position at the bottom of the file

David Prévot taffit at moszumanska.debian.org
Sat Aug 2 12:51:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 9187cac2af2a192728a5f0f42b5553fa14da055a
Author: janekptacijarabaci <janekptacijarabaci at centrum.cz>
Date:   Tue Jul 29 07:57:12 2014 +0200

    Scratchpad - editing a script - the position at the bottom of the file
    
    Ad #1785
    The suggestion (for example).
---
 content/scratchpad-overlay.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/scratchpad-overlay.js b/content/scratchpad-overlay.js
index 9e1f486..f4b6608 100644
--- a/content/scratchpad-overlay.js
+++ b/content/scratchpad-overlay.js
@@ -24,7 +24,7 @@ window.addEventListener('load', function() {
 
     if (!Scratchpad.initialized) return;
 
-    Scratchpad.selectRange(0, 0);
+    Scratchpad.editor.setCursor({line: 0, ch: 0});
     clearInterval(initializeCheckTimer);
   }
   initializeCheckTimer = setInterval(moveCursorToTop, 20);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list