Skip to content

Commit

Permalink
Merge pull request #582 from navidys/run_dialog_focus
Browse files Browse the repository at this point in the history
Exec and run vterm container ID and name display issue fix
  • Loading branch information
navidys authored Mar 8, 2025
2 parents a92cec5 + e15d76a commit 5302f66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/containers/cntdialogs/vterm/vterm.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,12 @@ func (d *VtermDialog) SetCancelFunc(handler func()) *VtermDialog {
// SetContainerInfo sets container's ID and NAME to the terminal header.
func (d *VtermDialog) SetContainerInfo(id string, name string) {
d.containerID = id
containerInfo := id[0:12]

if name != "" {
containerInfo = fmt.Sprintf("%s (%s)", containerInfo, name)
}

containerInfo := fmt.Sprintf("%12s (%s)", id, name)
d.containerInfo.SetText(containerInfo)
}

Expand Down

0 comments on commit 5302f66

Please sign in to comment.