aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2019-02-03 01:12:11 -0800
committerWilfred Hughes <me@wilfred.me.uk>2019-02-03 01:12:11 -0800
commitb80701b193bddfffdacd2ab065749cc63d0e45d0 (patch)
tree6d3e11590334cce38fe52ae62c8de404129d9240
parentcf24f963bd77f679f09057c55c6a4683b3f3a5cb (diff)
If there are no primitives, don't show that header
-rw-r--r--helpful.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/helpful.el b/helpful.el
index be533e0..6d76942 100644
--- a/helpful.el
+++ b/helpful.el
@@ -657,10 +657,10 @@ overrides that to include previously opened buffers."
(insert (format "Functions called by %s:\n\n" sym))
(helpful--display-callee-group compounds)
- (insert "\n")
-
- (insert (format "Primitives called by %s:\n\n" sym))
- (helpful--display-callee-group primitives)
+ (when primitives
+ (insert "\n")
+ (insert (format "Primitives called by %s:\n\n" sym))
+ (helpful--display-callee-group primitives))
(goto-char (point-min))