File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ export default class LocalEchoController {
26
26
constructor ( term = null , options = { } ) {
27
27
this . term = term ;
28
28
this . _handleTermData = this . handleTermData . bind ( this ) ;
29
- this . _handleTermResize = this . handleTermResize . bind ( this )
30
-
29
+ this . _handleTermResize = this . handleTermResize . bind ( this ) ;
30
+
31
31
this . history = new HistoryController ( options . historySize || 10 ) ;
32
32
this . maxAutocompleteEntries = options . maxAutocompleteEntries || 100 ;
33
+ this . isIncompleteInput = options . isIncompleteInput || isIncompleteInput ;
33
34
34
35
this . _autocompleteHandlers = [ ] ;
35
36
this . _active = false ;
@@ -43,7 +44,6 @@ export default class LocalEchoController {
43
44
} ;
44
45
45
46
this . _disposables = [ ] ;
46
-
47
47
if ( term ) {
48
48
if ( term . loadAddon ) term . loadAddon ( this ) ;
49
49
else this . attach ( ) ;
@@ -545,7 +545,7 @@ export default class LocalEchoController {
545
545
} else if ( ord < 32 || ord === 0x7f ) {
546
546
switch ( data ) {
547
547
case "\r" : // ENTER
548
- if ( isIncompleteInput ( this . _input ) ) {
548
+ if ( this . isIncompleteInput ( this . _input ) ) {
549
549
this . handleCursorInsert ( "\n" ) ;
550
550
} else {
551
551
this . handleReadComplete ( ) ;
You can’t perform that action at this time.
0 commit comments