Skip to content

Commit 1bdf4d4

Browse files
fix: closing panes
1 parent 4604a3f commit 1bdf4d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DmuxApp.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,10 @@ const DmuxApp: React.FC<DmuxAppProps> = ({ dmuxDir, panesFile, projectName, sess
582582
} else if (key.downArrow) {
583583
setSelectedCloseOption(Math.min(3, selectedCloseOption + 1));
584584
} else if (key.return && closingPane) {
585-
handleCloseOption(selectedCloseOption, closingPane);
585+
handleCloseOption(selectedCloseOption, closingPane).catch(error => {
586+
setStatusMessage('Failed to close pane');
587+
setTimeout(() => setStatusMessage(''), 2000);
588+
});
586589
}
587590
return;
588591
}

0 commit comments

Comments
 (0)