Fix mis-calc regarding column layout.
This commit is contained in:
parent
fe2cbfc9bb
commit
a7bb2f7c8d
1 changed files with 4 additions and 1 deletions
|
@ -328,7 +328,10 @@ put it in magit-key-mode-key-maps for fast lookup."
|
|||
(let ((str (car strings)))
|
||||
(let ((padding (make-string (- (+ longest-act 3) (length str)) ? )))
|
||||
(insert str)
|
||||
(if (and (> (+ (current-column) longest-act) (window-width))
|
||||
(if (and (> (+ (length padding)
|
||||
(current-column)
|
||||
longest-act)
|
||||
(window-width))
|
||||
(cdr strings))
|
||||
(insert "\n")
|
||||
(insert padding))))
|
||||
|
|
Loading…
Add table
Reference in a new issue