summaryrefslogtreecommitdiff
path: root/lisp/proced.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-08-12 13:18:13 +0300
committerEli Zaretskii <eliz@gnu.org>2017-08-12 13:18:13 +0300
commite94b0d4d54e39b2601b7f3f724d6c6d8a556e89f (patch)
tree19d67199447c431c846b6f0635593904ea0101f4 /lisp/proced.el
parenta955d7951624bf38649448dc89b411e8212dec0b (diff)
downloademacs-e94b0d4d54e39b2601b7f3f724d6c6d8a556e89f.tar.gz
Adapt Proced display to display-line-numbers
* lisp/proced.el (proced-header-line): Account for the width taken by display-line-numbers. (Bug#27895)
Diffstat (limited to 'lisp/proced.el')
-rw-r--r--lisp/proced.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/proced.el b/lisp/proced.el
index 86d79689a49..be3b7c41a61 100644
--- a/lisp/proced.el
+++ b/lisp/proced.el
@@ -602,7 +602,9 @@ Important: the match ends just after the marker.")
(defun proced-header-line ()
"Return header line for Proced buffer."
- (list (propertize " " 'display '(space :align-to 0))
+ (list (propertize " "
+ 'display
+ (list 'space :align-to (+ 2 (line-number-display-width))))
(if (<= (window-hscroll) (length proced-header-line))
(replace-regexp-in-string ;; preserve text properties
"\\(%\\)" "\\1\\1"