mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-09 19:48:45 +01:00
fix error regarding sw:set when screen is empty
This commit is contained in:
parent
cb6712202f
commit
5344aef096
@ -1651,17 +1651,10 @@ class Model {
|
||||
}
|
||||
|
||||
onTCmd(e : any, mods : KeyModsType) {
|
||||
console.log("got cmd-t", mods);
|
||||
GlobalCommandRunner.createNewScreen();
|
||||
}
|
||||
|
||||
onICmd(e : any, mods : KeyModsType) {
|
||||
let sw = this.getActiveSW();
|
||||
if (sw != null) {
|
||||
if (sw.focusType.get() == "input") {
|
||||
GlobalCommandRunner.swSelectLine("E");
|
||||
}
|
||||
}
|
||||
this.inputModel.giveFocus();
|
||||
}
|
||||
|
||||
@ -2214,7 +2207,7 @@ class CommandRunner {
|
||||
if (htype != null && htype != "window") {
|
||||
kwargs["type"] = htype;
|
||||
}
|
||||
GlobalModel.submitCommand("history", null, null, kwargs, true);
|
||||
GlobalModel.submitCommand("_history", null, null, kwargs, true);
|
||||
}
|
||||
|
||||
switchSession(session : string) {
|
||||
|
Loading…
Reference in New Issue
Block a user