diff --git a/ui.go b/ui.go index ab07842d..86578499 100644 --- a/ui.go +++ b/ui.go @@ -1362,7 +1362,7 @@ func listMatches(screen tcell.Screen, matches []string, selectedInd int) *bytes. wcol = max(wcol, len(m)) } wcol += gOpts.tabstop - wcol%gOpts.tabstop - ncol := wtot / wcol + ncol := max(wtot/wcol, 1) b.WriteString("possible matches\n")