emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/disk-usage 4ce2b9b 03/48: Update buffer when toggling h


From: Stefan Monnier
Subject: [elpa] externals/disk-usage 4ce2b9b 03/48: Update buffer when toggling human readable size
Date: Tue, 19 Feb 2019 07:59:57 -0500 (EST)

branch: externals/disk-usage
commit 4ce2b9b127d665b5b24541100ee5362afa52a060
Author: Pierre Neidhardt <address@hidden>
Commit: Pierre Neidhardt <address@hidden>

    Update buffer when toggling human readable size
---
 disk-usage.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/disk-usage.el b/disk-usage.el
index 70288d5..c2d2afc 100644
--- a/disk-usage.el
+++ b/disk-usage.el
@@ -150,7 +150,8 @@ Takes a number and returns a string.
   (interactive)
   (if (eq disk-usage--format #'file-size-human-readable)
       (setq disk-usage--format #'number-to-string)
-    (setq disk-usage--format #'file-size-human-readable)))
+    (setq disk-usage--format #'file-size-human-readable))
+  (tabulated-list-revert))
 
 (defun disk-usage--print-entry (id cols)
   "Like `tabulated-list-print-entry' but formats size for human



reply via email to

[Prev in Thread] Current Thread [Next in Thread]