aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index 40249215..47564f12 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -2052,7 +2052,8 @@ comment, and insert or skip to the next semi)."
(if (proof-only-whitespace-to-locked-region-p)
(error "There's nothing to do!"))
(skip-chars-backward " \t\n")
- (if (not (= (char-after (point)) proof-terminal-char))
+ (if (and (char-after (point))
+ (not (= (char-after (point)) proof-terminal-char)))
(unless proof-electric-terminator-noterminator
(insert proof-terminal-string)
(setq ins t)))