Skip to content

Commit

Permalink
fix: multiplexer panic when no selected pane
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Aug 13, 2024
1 parent d6a75c1 commit b13e038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sst/mosaic/multiplexer/draw.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (s *Multiplexer) draw() {
if selected != nil && selected.isScrolling() && (s.focused || !selected.killable) {
hotkeys["enter"] = "reset"
}
if selected.vt.HasSelection() {
if selected != nil && selected.vt.HasSelection() {
hotkeys["enter"] = "copy"
}
hotkeys["ctrl-u/d"] = "scroll"
Expand Down

0 comments on commit b13e038

Please sign in to comment.