Explorar o código

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

n1474335 %!s(int64=7) %!d(string=hai) anos
pai
achega
fe8f8bc712
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/web/InputWaiter.js

+ 1 - 0
src/web/InputWaiter.js

@@ -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;