diff --git a/edit/writer.go b/edit/writer.go index 0dd74516..ac6019ce 100644 --- a/edit/writer.go +++ b/edit/writer.go @@ -509,7 +509,7 @@ tokens: // Render bufListing under the maximum height constraint nav := es.navigation hist := es.historyListing - if hListing > 0 { + if hListing > 0 && (comp != nil || nav != nil || hist != nil) { b := newBuffer(width) bufListing = b if comp != nil { // Completion listing @@ -594,6 +594,9 @@ tokens: } } + Logger.Printf("bufLine %d, bufMode %d, bufTips %d, bufListing %d", + lines(bufLine), lines(bufMode), lines(bufTips), lines(bufListing)) + // Combine buffers (reusing bufLine) buf = bufLine buf.extend(bufMode)