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:
parent
e2897e6cdd
commit
4827c1a6ca
1 changed files with 6 additions and 1 deletions
|
@ -327,7 +327,12 @@ ScelDocument : Document{
|
||||||
}
|
}
|
||||||
|
|
||||||
*current {
|
*current {
|
||||||
^EmacsDocument.current.sceld;
|
var cur = EmacsDocument.current;
|
||||||
|
if ( cur.isNil ){
|
||||||
|
^cur;
|
||||||
|
}{
|
||||||
|
^cur.sceld;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*prGetIndexOfListener{
|
*prGetIndexOfListener{
|
||||||
|
|
Loading…
Reference in a new issue