diff options
Diffstat (limited to 'elisp')
-rw-r--r-- | elisp/geiser-syntax.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/elisp/geiser-syntax.el b/elisp/geiser-syntax.el index 9cb38c0..e050503 100644 --- a/elisp/geiser-syntax.el +++ b/elisp/geiser-syntax.el @@ -95,8 +95,8 @@ (insert "XXXpointXX")) (let ((depth (nth 0 (parse-partial-sexp (point-min) (point))))) (unless (zerop depth) (insert (make-string depth ?\))))) - (let ((res (buffer-substring-no-properties (point-min) (point)))) - (and (not (zerop (length res))) res)))) + (when (< (point-min) (point)) + (buffer-substring-no-properties (point-min) (point))))) (defsubst geiser-syntax--get-partial-sexp () (unless (zerop (nth 0 (syntax-ppss))) |