File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ export default class Runtime {
49
49
// * "File Based"
50
50
// input (Optional) - {String} that'll be provided to the `stdin` of the new process
51
51
execute ( argType = 'Selection Based' , input = null , options = null ) {
52
-
53
52
const codeContext = this . codeContextBuilder . buildCodeContext (
54
53
atom . workspace . getActiveTextEditor ( ) , argType ) ;
55
54
@@ -66,16 +65,16 @@ export default class Runtime {
66
65
var terminus = require ( '../../terminus/lib/terminus.js' ) . provideTerminus ( ) ;
67
66
} catch ( e ) {
68
67
var terminus = null ;
69
- console . log ( " Could not find Terminus" ) ;
68
+ console . log ( ' Could not find Terminus' ) ;
70
69
}
71
70
if ( terminus != null ) {
72
- var command = commandContext . command ;
73
- for ( let i = 0 ; i < commandContext . args . length ; i ++ ) {
74
- command += ' "' + commandContext . args [ i ] + '"' ;
75
- }
76
- terminus . run ( [ ' printf "\\33c\\e[3J" && ' + command ] ) ;
77
- return ;
78
- }
71
+ let command = commandContext . command ;
72
+ for ( let i = 0 ; i < commandContext . args . length ; i ++ ) {
73
+ command += ` " ${ commandContext . args [ i ] } "` ;
74
+ }
75
+ terminus . run ( [ ` printf "\\33c\\e[3J" && ${ command } ` ] ) ;
76
+ return ;
77
+ }
79
78
80
79
if ( atom . config . get ( 'script.stopOnRerun' ) ) this . stop ( ) ;
81
80
this . emitter . emit ( 'start' ) ;
You can’t perform that action at this time.
0 commit comments