branch: externals/rec-mode
commit 99c7c8e62f2d6fb7d350eaed648c55b4c29774f6
Author: Jose E. Marchesi <[email protected]>
Commit: Antoine Kalmbach <[email protected]>
rec-mode: bug affecting the hiding of continuation line markers fixed.
---
etc/rec-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index e67dd6d..04643bd 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -859,11 +859,11 @@ current buffer to look like indentation."
(value-begin (+ pos (length (rec-field-name field)) 1))
(value-end (+ value-begin
(length (with-temp-buffer
- (insert (rec-field-value field))
+ (rec-insert-field-value
(rec-field-value field))
(buffer-substring (point-min)
(point-max)))))))
(save-excursion
(goto-char value-begin)
- (while (re-search-forward "^\\+ ?" value-end t)
+ (while (re-search-forward "^\\+ ?" (+ value-end 1) t)
(let ((ov (make-overlay (match-beginning 0) (match-end 0))))
(overlay-put ov 'display '(space . (:width
rec-continuation-line-markers-width)))
(push ov rec-continuation-line-markers-overlays))))))