summaryrefslogtreecommitdiff
path: root/helm.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-05-20 20:36:06 +0200
committerThierry Volpiatto <thievol@posteo.net>2021-05-20 20:36:06 +0200
commit630548e1aa6aec284e9cbf0031a749ed04bce2d6 (patch)
tree8aa228e1095ec9775e75d2922e0a7a48e75b4913 /helm.el
parent2b60812516a0560ba5b2501771b53273a56c6488 (diff)
Simplify helm-display-line-numbers-mode
Diffstat (limited to 'helm.el')
-rw-r--r--helm.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/helm.el b/helm.el
index 8618fc9b..730725ab 100644
--- a/helm.el
+++ b/helm.el
@@ -5037,11 +5037,9 @@ This will work only in Emacs-26+, i.e. Emacs versions that have
(with-helm-alive-p
(cl-assert (boundp 'display-line-numbers) nil
"`display-line-numbers' not available")
- (if helm-display-line-numbers-mode
- (with-helm-buffer
- (setq display-line-numbers 'relative))
- (with-helm-buffer
- (setq display-line-numbers nil)))))
+ (with-helm-buffer
+ (setq display-line-numbers
+ (and helm-display-line-numbers-mode 'relative)))))
(put 'helm-display-line-numbers-mode 'helm-only t)