pull/65869/head
isidor 2018-12-31 11:47:05 +01:00
parent 637bbbe48d
commit 08e957a39f
1 changed files with 1 additions and 4 deletions

View File

@ -214,9 +214,6 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
}
this.replInput.updateOptions({ readOnly: this.isReadonly });
if (this.isReadonly) {
this.replInput.setValue('');
}
this.updateInputDecoration();
}
@ -462,7 +459,7 @@ export class Repl extends Panel implements IPrivateReplService, IHistoryNavigati
}
const decorations: IDecorationOptions[] = [];
if (this.isReadonly && this.replInput.hasTextFocus()) {
if (this.isReadonly && this.replInput.hasTextFocus() && !this.replInput.getValue()) {
decorations.push({
range: {
startLineNumber: 0,