Commit 1d179f2
committed
[Fix #295] clojure-in-docstring-p not using point
The problem in #295 is caused by us checking the text property of the
character penultimate character in the current line. When point is at
the beginning of the buffer we're asking for the property at position 0,
which doesn't exist.
The solution is to not worry about what the text property is for the
penultimate character of the current line and instead of check what it
is at the position of point. This has the benefit of aligning the
function result, name and docstring :)1 parent 31ea7ce commit 1d179f2
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
281 | 279 | | |
282 | 280 | | |
283 | 281 | | |
| |||
0 commit comments