branch: externals/hydra
commit 462202d7fc141b6e5ed71332675b69f70da9bad4
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    hydra.el (hydra--doc): Fixup
    
    Re #281
---
 hydra.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/hydra.el b/hydra.el
index 57c712fe79..c8b4ce1436 100644
--- a/hydra.el
+++ b/hydra.el
@@ -744,8 +744,9 @@ HEADS is a list of heads."
       (format "\"%s\":    `%S'" (car x) (cadr x)))
     heads ",\n")
    (format "The body can be accessed via `%S'" body-name)
-   (when body-key
-     (format ", which is bound to \"%s\"" body-key))))
+   (if body-key
+       (format ", which is bound to \"%s\"" body-key)
+     "")))
 
 (defun hydra--call-interactively-remap-maybe (cmd)
   "`call-interactively' the given CMD or its remapped equivalent.

Reply via email to