Skip to content

Commit 7b159ff

Browse files
tab after-autocomplete cursor position fix
1 parent 494e451 commit 7b159ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webSource/js/TerminalInput.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ TerminalInput.prototype.set = function (text) {
138138

139139
element.value = text;
140140
length = element.value.length;
141+
this.setCaretPosition(length);
142+
//setTimeout(function() { _._onInput(); }, 1);
141143
this._onInput();
142-
setTimeout(function() { element.setSelectionRange(length, length); }, 1);
143144

144145
};
145146

0 commit comments

Comments
 (0)