File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -383,15 +383,15 @@ void UpdateColorsIfNecessary(string newColor)
383
383
// 1. console buffer was resized and the regular prompt takes a whole line of the new width buffer; OR
384
384
// 2. the prompt function was changed and the new prompt is shorter than the error prompt.
385
385
// when this happens, we skip changing the color of the prompt.
386
- if ( _console . CursorLeft >= promptBufferCells )
387
- {
388
- _console . CursorLeft -= promptBufferCells ;
389
- var color = renderData . errorPrompt ? _options . _errorColor : defaultColor ;
390
- if ( renderData . errorPrompt && promptBufferCells != promptText . Length )
391
- promptText = promptText . Substring ( promptText . Length - promptBufferCells ) ;
392
- UpdateColorsIfNecessary ( color ) ;
393
- _console . Write ( promptText ) ;
394
- _console . Write ( "\x1b [0m" ) ;
386
+ if ( _console . CursorLeft >= promptBufferCells )
387
+ {
388
+ _console . CursorLeft -= promptBufferCells ;
389
+ var color = renderData . errorPrompt ? _options . _errorColor : defaultColor ;
390
+ if ( renderData . errorPrompt && promptBufferCells != promptText . Length )
391
+ promptText = promptText . Substring ( promptText . Length - promptBufferCells ) ;
392
+ UpdateColorsIfNecessary ( color ) ;
393
+ _console . Write ( promptText ) ;
394
+ _console . Write ( "\x1b [0m" ) ;
395
395
}
396
396
}
397
397
}
You can’t perform that action at this time.
0 commit comments