Skip to content

Commit

Permalink
Added test for tty
Browse files Browse the repository at this point in the history
  • Loading branch information
rougier committed May 31, 2021
1 parent c0afcfc commit 7fc1ae9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nano-compact.el
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'face `(:inherit bold
:foreground ,nano-color-foreground)))
(t
(propertize "[-] "
(propertize ""
'face `(
:foreground ,nano-color-foreground)))))
(name (propertize name 'face `(:inherit bold)))
Expand All @@ -68,7 +68,8 @@
(right (concat (propertize secondary
'face `(:foreground ,nano-color-faded))
(propertize " " 'face nil)))
(available-width (- (window-total-width nil 'floor) 1
(available-width (- (window-total-width nil 'floor)
(if (display-graphic-p) 1 0)
(length left) (length right)))
(available-width (max 1 available-width)))
(concat left (make-string available-width ?\ ) right)))
Expand Down

0 comments on commit 7fc1ae9

Please sign in to comment.