Commit a205977a authored by chriseth's avatar chriseth

Position cursor at beginning after insert.

parent 1a9525c7
...@@ -107,7 +107,7 @@ THE SOFTWARE. ...@@ -107,7 +107,7 @@ THE SOFTWARE.
window.localStorage.setItem( SOL_CACHE_FILES_KEY, JSON.stringify( solFiles ) ); window.localStorage.setItem( SOL_CACHE_FILES_KEY, JSON.stringify( solFiles ) );
editor.setValue( solCache, 1 ); editor.setValue( solCache, -1 );
session.setMode("ace/mode/javascript"); session.setMode("ace/mode/javascript");
...@@ -197,7 +197,7 @@ THE SOFTWARE. ...@@ -197,7 +197,7 @@ THE SOFTWARE.
} }
var active = fileTabFromName(SOL_CACHE_FILE); var active = fileTabFromName(SOL_CACHE_FILE);
active.addClass('active') 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' ) $('#input').toggle( typeof SOL_CACHE_FILE === 'string' )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment