@@ -240,6 +240,25 @@ class MuxList implements Component {
240240
241241 const lines : string [ ] = [ ] ;
242242 lines . push ( truncateToWidth ( header , width , "" ) ) ;
243+
244+ if ( mode !== "list" ) {
245+ lines . push (
246+ truncateToWidth (
247+ theme . fg ( "error" , this . parent . getPendingConfirmMessage ( ) ) ,
248+ width ,
249+ "…" ,
250+ ) ,
251+ ) ;
252+ } else {
253+ const sep = theme . fg ( "muted" , " · " ) ;
254+ const hints = [
255+ rawKeyHint ( "d" , "kill" ) ,
256+ rawKeyHint ( "D" , "kill all" ) ,
257+ rawKeyHint ( "tab" , "scope" ) ,
258+ rawKeyHint ( "q" , "close" ) ,
259+ ] . join ( sep ) ;
260+ lines . push ( truncateToWidth ( hints , width , "…" ) ) ;
261+ }
243262 lines . push ( "" ) ;
244263
245264 if ( rows . length === 0 ) {
@@ -293,20 +312,6 @@ class MuxList implements Component {
293312 }
294313 }
295314
296- lines . push ( "" ) ;
297- if ( mode !== "list" ) {
298- lines . push ( theme . fg ( "error" , this . parent . getPendingConfirmMessage ( ) ) ) ;
299- } else {
300- const sep = theme . fg ( "muted" , " · " ) ;
301- const hints = [
302- rawKeyHint ( "d" , "kill" ) ,
303- rawKeyHint ( "D" , "kill all" ) ,
304- rawKeyHint ( "tab" , "scope" ) ,
305- rawKeyHint ( "q" , "close" ) ,
306- ] . join ( sep ) ;
307- lines . push ( hints ) ;
308- }
309-
310315 return lines ;
311316 }
312317}
0 commit comments