We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f54837 commit b50d820Copy full SHA for b50d820
tests/haskell-test-utils.el
@@ -110,11 +110,16 @@ if all of its characters have syntax and face. See
110
(with-haskell-test-buffer (or mode #'haskell-mode)
111
(if (consp lines-or-contents)
112
(dolist (line lines-or-contents)
113
- (insert line)
114
- (insert "\n"))
115
- (insert lines-or-contents))
+ (let ((pos (point)))
+ (insert line "\n")
+ (save-excursion
116
+ ;; For some reason font-lock-fontify-region moves the
117
+ ;; point. I do not think it is guaranteed it should not,
118
+ ;; but then it might be our fault. Investigate later.
119
+ (font-lock-fontify-region pos (point)))))
120
+ (insert lines-or-contents)
121
+ (font-lock-fontify-buffer))
122
- (font-lock-fontify-buffer)
123
(goto-char (point-min))
124
(dolist (prop props)
125
(cl-destructuring-bind (string syntax face) prop
0 commit comments