Skip to content

Commit 9d48d51

Browse files
committed
fix(mux): Restore window focus after edge detection
1 parent 24e471d commit 9d48d51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/smart-splits/mux/zellij.lua

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ function M.current_pane_at_edge()
3636
return false
3737
end
3838

39+
-- move back to original pane
40+
zellij_exec({ 'action', 'move-focus', Direction.right })
41+
3942
return pane_id == new_pane_id
4043
end
4144

0 commit comments

Comments
 (0)