emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/rec-mode 99c7c8e 37/98: rec-mode: bug affecting the hid


From: Stefan Monnier
Subject: [elpa] externals/rec-mode 99c7c8e 37/98: rec-mode: bug affecting the hiding of continuation line markers fixed.
Date: Thu, 12 Nov 2020 13:18:36 -0500 (EST)

branch: externals/rec-mode
commit 99c7c8e62f2d6fb7d350eaed648c55b4c29774f6
Author: Jose E. Marchesi <jemarch@gnu.org>
Commit: Antoine Kalmbach <ane@iki.fi>

    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))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]