Skip to content

Commit 75e34d9

Browse files
committed
Merge pull request #299 from expez/bug-in-clojure-in-docstring-p
[Fix #295] clojure-in-docstring-p not using point
2 parents 31ea7ce + 1d179f2 commit 75e34d9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clojure-mode.el

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@ ENDP and DELIMITER."
275275

276276
(defsubst clojure-in-docstring-p ()
277277
"Check whether point is in a docstring."
278-
(unless (bobp)
279-
(eq (get-text-property (1- (point-at-eol)) 'face)
280-
'font-lock-doc-face)))
278+
(eq (get-text-property (point) 'face) 'font-lock-doc-face))
281279

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

0 commit comments

Comments
 (0)