Skip to content

Commit 7fdc4a1

Browse files
committed
Fix broken `indent-for-tab-command' when point is 1
* clojure-mode.el (clojure-in-docstring-p): Don't call `(get-text-property 0)`, since it will throw.
1 parent 181ee7d commit 7fdc4a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clojure-mode.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ ENDP and DELIMITER."
280280

281281
(defsubst clojure-in-docstring-p ()
282282
"Check whether point is in a docstring."
283-
(eq (get-text-property (1- (point-at-eol)) 'face)
284-
'font-lock-doc-face))
283+
(unless (bobp)
284+
(eq (get-text-property (1- (point-at-eol)) 'face)
285+
'font-lock-doc-face)))
285286

286287
(defsubst clojure-docstring-fill-prefix ()
287288
"The prefix string used by `clojure-fill-paragraph'.

0 commit comments

Comments
 (0)