branch: elpa/git-commit
commit ea0f07e54967197ac0b072a69ba314314a4080c1
Author: Daniel Martín <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-section--enable-long-lines-shortcuts: Fix warning
    
    Include the value in message, as always intended, and fix a typo.
---
 lisp/magit-section.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/magit-section.el b/lisp/magit-section.el
index 4f62493815..08f32b4929 100644
--- a/lisp/magit-section.el
+++ b/lisp/magit-section.el
@@ -1760,10 +1760,10 @@ invisible."
   (kill-local-variable 'redisplay-unhighlight-region-function)
   (when magit-show-long-lines-warning
     (setq magit-show-long-lines-warning nil)
-    (display-warning 'magit "\
+    (display-warning 'magit (format "\
 Emacs has enabled redisplay shortcuts
 in this buffer because there are lines whose length go beyond
-`long-line-treshold' \(%s characters).  As a result, section
+`long-line-threshold' \(%s characters).  As a result, section
 highlighting and the special appearance of the region has been
 disabled.  Some existing highlighting might remain in effect.
 
@@ -1773,7 +1773,7 @@ and recreate the buffer.
 
 This message won't be shown for this session again.  To disable
 it for all future sessions, set `magit-show-long-lines-warning'
-to nil." :warning)))
+to nil." (bound-and-true-p long-line-threshold)) :warning)))
 
 (cl-defgeneric magit-section-get-relative-position (section))
 

Reply via email to