summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 4fb23938..c5c5b552 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1928,7 +1928,8 @@ Some ideas behind these behaviours are as follows.
(goto-char (point-max))
(skip-syntax-backward "\\s-")
(- (point) (length >>>)))))
- (unless (string= >>> (buffer-substring there (point-max)))
+ (unless (and (>= there 0)
+ (string= >>> (buffer-substring there (point-max))))
(save-excursion
(goto-char (point-max))
(insert >>>)