@@ -83,6 +83,9 @@ D.Ed.prototype={
8383 if ( this . btm == - 1 ) { this . cm . scrollTo ( 0 , this . cm . heightAtLine ( this . cm . lastLine ( ) , "local" ) - this . cm . getScrollInfo ( ) . clientHeight + this . cm . defaultTextHeight ( ) + 4 ) }
8484 else if ( this . btm != null ) { var i = this . cm . getScrollInfo ( ) ; this . cm . scrollTo ( 0 , this . btm - i . clientHeight ) }
8585 } ,
86+ updateSIStack :function ( x ) {
87+ this . dom . querySelector ( '.si_stack' ) . innerHTML = x . stack . map ( function ( o ) { return '<option>' + o } ) . join ( '' )
88+ } ,
8689 open :function ( ee ) { //ee:editable entity
8790 var ed = this , cm = ed . cm
8891 this . jumps . forEach ( function ( x ) { x . n = x . lh . lineNo ( ) } ) //to preserve jumps, convert LineHandle-s to line numbers
@@ -159,7 +162,7 @@ D.Ed.prototype={
159162 cm . replaceRange ( s , { line :l , ch :0 } , { line :l , ch :cm . getLine ( l ) . length } , 'D' )
160163 } ,
161164 LN :function ( ) { D . prf . lineNums . toggle ( ) } ,
162- TC :function ( ) { D . send ( 'StepInto' , { win :this . id } ) } ,
165+ TC :function ( ) { D . send ( 'StepInto' , { win :this . id } ) ; D . send ( 'GetSIStack' , { } ) } ,
163166 AC :function ( cm ) { //align comments
164167 if ( cm . getOption ( 'readOnly' ) ) return
165168 var ed = this , ll = cm . lastLine ( ) , o = cm . listSelections ( ) //o:original selections
@@ -179,7 +182,7 @@ D.Ed.prototype={
179182 cm . setSelections ( o )
180183 } ,
181184 ER :function ( cm ) {
182- if ( this . tc ) { D . send ( 'RunCurrentLine' , { win :this . id } ) ; return }
185+ if ( this . tc ) { D . send ( 'RunCurrentLine' , { win :this . id } ) ; D . send ( 'GetSIStack' , { } ) ; return }
183186 if ( D . prf . autoCloseBlocks ( ) ) {
184187 var u = cm . getCursor ( ) , l = u . line , s = cm . getLine ( l ) , m
185188 var re = / ^ ( \s * ) : ( c l a s s | d i s p o s a b l e | f o r | i f | i n t e r f a c e | n a m e s p a c e | p r o p e r t y | r e p e a t | s e c t i o n | s e l e c t | t r a p | w h i l e | w i t h ) \b ( [ ^ ⋄ \{ ] * ) $ / i
0 commit comments