From a205977ace898fb6310b5a64df3c67364a1c3f5d Mon Sep 17 00:00:00 2001 From: chriseth Date: Sun, 4 Oct 2015 11:00:16 +0200 Subject: [PATCH] Position cursor at beginning after insert. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 748e616334..1facdbad23 100644 --- a/index.html +++ b/index.html @@ -107,7 +107,7 @@ THE SOFTWARE. window.localStorage.setItem( SOL_CACHE_FILES_KEY, JSON.stringify( solFiles ) ); - editor.setValue( solCache, 1 ); + editor.setValue( solCache, -1 ); session.setMode("ace/mode/javascript"); @@ -197,7 +197,7 @@ THE SOFTWARE. } var active = fileTabFromName(SOL_CACHE_FILE); active.addClass('active') - editor.setValue( window.localStorage.getItem( SOL_CACHE_FILE ) || '', 1 ); + editor.setValue( window.localStorage.getItem( SOL_CACHE_FILE ) || '', -1 ); $('#input').toggle( typeof SOL_CACHE_FILE === 'string' ) }