[PATCH] Fix minor mistake where indentation width is ignored

classic Classic list List threaded Threaded
1 message Options
Tom Hinton Tom Hinton
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Fix minor mistake where indentation width is ignored

---
 emacs/notmuch-show.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el
index 0f157ec5..f99a5c3b 100644
--- a/emacs/notmuch-show.el
+++ b/emacs/notmuch-show.el
@@ -330,7 +330,7 @@ operation on the contents of the current buffer."
     (with-temp-buffer
       (insert all)
       (if indenting
-  (indent-rigidly (point-min) (point-max) (- depth)))
+  (indent-rigidly (point-min) (point-max) (- (* notmuch-show-indent-messages-width depth))))
       ;; Remove the original header.
       (goto-char (point-min))
       (re-search-forward "^$" (point-max) nil)
@@ -909,7 +909,7 @@ will return nil if the CID is unknown or cannot be retrieved."
  (narrow-to-region part-beg part-end)
  (delete-region part-beg part-end)
  (apply #'notmuch-show-insert-bodypart-internal part-args)
- (indent-rigidly part-beg part-end depth))
+ (indent-rigidly part-beg part-end (* notmuch-show-indent-messages-width depth)))
       (goto-char part-end)
       (delete-char 1)
       (notmuch-show-record-part-information (second part-args)
--
2.12.2

_______________________________________________
notmuch mailing list
[hidden email]
https://notmuchmail.org/mailman/listinfo/notmuch
Loading...