Skip to content

Commit 942203e

Browse files
jeffvalkcap10morgan
authored andcommitted
[Fix #1379] Fix test highlighting at start of line
Enable test fail/error highlighting for forms at the beginning of a line with no preceding whitespace.
1 parent 44a7ced commit 942203e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* [#1488](https://github.com/clojure-emacs/cider/pull/1488): Delete zombie overlays in the REPL buffer.
1818
* [#1482](https://github.com/clojure-emacs/cider/issues/1482): Clear nREPL sessions when a connection is closed.
1919
* [#1435](https://github.com/clojure-emacs/cider/issues/1435): Improve error display is cider-test.
20+
* [#1379](https://github.com/clojure-emacs/cider/issues/1379): Fix test highlighting at start of line.
2021

2122
## 0.10.0 / 2015-12-03
2223

cider-test.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,7 @@ With the actual value, the outermost '(not ...)' s-expression is removed."
360360
(save-excursion
361361
(goto-char (point-min))
362362
(forward-line (1- line))
363-
(forward-whitespace 1)
364-
(forward-char)
363+
(search-forward "(" nil t)
365364
(let ((beg (point)))
366365
(forward-sexp)
367366
(let ((overlay (make-overlay beg (point))))

0 commit comments

Comments
 (0)