Commit 0596f15
committed
Fix addLineClass (and similar) returning null on no-op
When the call didn't result in an actual change (for example
line already had the given class), changeLine would return null.
This doesn't seem useful, and caused issue #2438. It now always
returns the line handle (as documented).
Conflicts:
lib/codemirror.js1 parent 27ee870 commit 0596f15
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2811 | 2811 | | |
2812 | 2812 | | |
2813 | 2813 | | |
2814 | | - | |
2815 | 2814 | | |
2816 | 2815 | | |
2817 | 2816 | | |
| |||
0 commit comments