aboutsummaryrefslogtreecommitdiffstats
path: root/glide
diff options
context:
space:
mode:
Diffstat (limited to 'glide')
-rw-r--r--glide/.config/glide/glide.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/glide/.config/glide/glide.ts b/glide/.config/glide/glide.ts
index 49c66de..62651a9 100644
--- a/glide/.config/glide/glide.ts
+++ b/glide/.config/glide/glide.ts
@@ -326,13 +326,19 @@ const unsplit_window = glide.excmds.create({
name: 'unsplit_window',
description: 'Remove the current split of windows',
}, ({ tab_id }) => {
- glide.unstable.split_views.separate(tab_id);
+ if (glide.unstable.split_views.has_split_view(tab_id)) {
+ glide.unstable.split_views.separate(tab_id);
+ }
});
const other_window = glide.excmds.create({
name: 'other_window',
description: 'Focus other window',
}, async ({ tab_id }) => {
+ if (!glide.unstable.split_views.has_split_view(tab_id)) {
+ return;
+ }
+
const split_tabs = await glide.unstable.split_views.get(tab_id);
const other_tab = split_tabs.tabs.filter(t => t.id !== tab_id)[0];