Skip to content

Commit d833f57

Browse files
BQXBQXesimkowitz
andauthored
fix: pass missing config to setTimeout in getSpareTab (#1627)
- Fixed an issue where `fullConfig` was not passed to `setTimeout` in `getSpareTab`. - Wrapped `ensureHotSpareTab` with an arrow function to ensure `fullConfig` is properly passed. **When I use wave as my terminal, sometimes the setting does not work. I read the source code and found this issue** Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
1 parent 9c8084a commit d833f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emain/emain-tabview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export function ensureHotSpareTab(fullConfig: FullConfigType) {
263263
}
264264

265265
export function getSpareTab(fullConfig: FullConfigType): WaveTabView {
266-
setTimeout(ensureHotSpareTab, 500);
266+
setTimeout(() => ensureHotSpareTab(fullConfig), 500);
267267
if (HotSpareTab != null) {
268268
const rtn = HotSpareTab;
269269
HotSpareTab = null;

0 commit comments

Comments
 (0)