Skip to content

Commit

Permalink
fix: tmux focused in standalone (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaP106 authored Jun 16, 2024
1 parent 672e641 commit 10dd508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/ui/main_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ func (mv *MainView) Render(ui *UI) error {
cwd, _ := os.Getwd()
if homeDir == cwd {
mv.tmv.standalone = true
return nil
}

GetDialog[*ConfirmationDialog](ui).Open(func(b bool) {
Expand Down
4 changes: 4 additions & 0 deletions pkg/ui/tmux_session_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ func (tv *TmuxSessionView) Init(ui *UI) {
ui.FocusPortView()
}
})

if tv.standalone {
FocusView(tv.Name())
}
}

func (tv *TmuxSessionView) getSelectedSession() *api.TmuxSession {
Expand Down

0 comments on commit 10dd508

Please sign in to comment.