Setting a text value in the input now closes any open files.

feature-extract-files
n1474335 2018-01-22 19:58:21 +00:00
parent abe87830cd
commit fe8f8bc712
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ InputWaiter.prototype.set = function(input) {
this.setInputInfo(input.size, null);
} else {
inputText.value = input;
this.closeFile();
window.dispatchEvent(this.manager.statechange);
const lines = input.length < (this.app.options.ioDisplayThreshold * 1024) ?
input.count("\n") + 1 : null;