提交 7d20b64a 编写于 作者: A Alex Ross

Ensure that selection is good when the remote file picker is used

上级 21ef7621
...@@ -248,6 +248,8 @@ export class RemoteFileDialog { ...@@ -248,6 +248,8 @@ export class RemoteFileDialog {
this.updateItems(homedir, trailing); this.updateItems(homedir, trailing);
if (trailing) { if (trailing) {
this.filePickBox.valueSelection = [this.filePickBox.value.length - trailing.length, this.filePickBox.value.length - ext.length]; this.filePickBox.valueSelection = [this.filePickBox.value.length - trailing.length, this.filePickBox.value.length - ext.length];
} else {
this.filePickBox.valueSelection = [this.filePickBox.value.length, this.filePickBox.value.length];
} }
this.userValue = this.filePickBox.value; this.userValue = this.filePickBox.value;
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册