Skip to content

Commit e66ef3b

Browse files
author
shmuel hizmi
committed
master
1 parent dd6f9e4 commit e66ef3b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
lib
3+
lib
4+
.collaborator

packages/wmux-client-terminal/src/components/WmuxApp.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export const WmuxApp = (props: {
252252
if (key.name === "r") {
253253
const activeCat = categories.find((c) => c.name === activeCategory);
254254
const activeTab = activeCat?.tabs.find((t) => t.id === activeTabId);
255-
if (activeTab?.status === "running") restartProcess(activeTabId);
255+
if (activeTab) restartProcess(activeTabId);
256256
return;
257257
}
258258

@@ -285,7 +285,7 @@ export const WmuxApp = (props: {
285285
if (firstFile) openFile(firstFile.path);
286286
} else {
287287
const activeTab = activeCat?.tabs.find((t) => t.id === activeTabId);
288-
if (activeTab?.status === "idle") startProcess(activeTabId);
288+
if (activeTab && activeTab.status !== "running") startProcess(activeTabId);
289289
}
290290
consumePrefix();
291291
return;

0 commit comments

Comments
 (0)