fix to ScelDocument for current, in case there is no current document, as is the case when evaluating code from the minibuffer

git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@8916 a380766d-ff14-0410-b294-a243070f3f08
This commit is contained in:
Marije Baalman 2009-03-12 17:28:36 +00:00
parent e2897e6cdd
commit 4827c1a6ca

View file

@ -327,7 +327,12 @@ ScelDocument : Document{
} }
*current { *current {
^EmacsDocument.current.sceld; var cur = EmacsDocument.current;
if ( cur.isNil ){
^cur;
}{
^cur.sceld;
}
} }
*prGetIndexOfListener{ *prGetIndexOfListener{