commit a94cf0edbda736c030a764b911d3e441dac930d6
parent ccdb8f0a98e541631fafb2425f7d175132eb6f6d
Author: Wilfred Hughes <me@wilfred.me.uk>
Date: Fri, 7 Apr 2017 21:29:26 +0100
Add a useful assert
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/helpful.el b/helpful.el
@@ -236,6 +236,7 @@ Ensures global keybindings are shown first."
"Update the current *Helpful* buffer to the latest
state of the current symbol."
(interactive)
+ (cl-assert (not (null helpful--sym)))
(let ((inhibit-read-only t)
(start-pos (point))
(source (helpful--source helpful--sym))