File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cmjs-shell" ,
3
- "version" : " 0.2.25 " ,
3
+ "version" : " 0.2.26 " ,
4
4
"license" : " MIT" ,
5
5
"description" : " Command shell based on CodeMirror." ,
6
6
"keywords" : [" shell" , " console" ],
Original file line number Diff line number Diff line change @@ -455,6 +455,8 @@ var Shell = function( CodeMirror_, opts ){
455
455
var doc = cm . getDoc ( ) ;
456
456
var lineno = doc . lastLine ( ) ;
457
457
var lastline = cm . getLine ( lineno ) ;
458
+
459
+ if ( ! is_continuation ) block_reset [ lineno ] = 1 ;
458
460
459
461
prompt_len = lastline . length + prompt_text . length ;
460
462
@@ -467,8 +469,6 @@ var Shell = function( CodeMirror_, opts ){
467
469
468
470
doc . setSelection ( { line : lineno , ch : prompt_len } ) ;
469
471
cm . scrollIntoView ( { line : lineno , ch : prompt_len } ) ;
470
-
471
- if ( ! is_continuation ) block_reset [ lineno ] = 1 ;
472
472
473
473
}
474
474
You can’t perform that action at this time.
0 commit comments