Commit d204c46c authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(linum-update-window): Ignore intangible (bug#4996).

parent 449c27f0
2009-11-24 Markus Triska <markus.triska@gmx.at>
* linum.el (linum-update-window): Ignore intangible (bug#4996).
2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
Handle the [back] button properly (bug#4979).
......
......@@ -166,7 +166,10 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
(overlay-put ov 'before-string
(propertize " " 'display `((margin left-margin) ,str)))
(overlay-put ov 'linum-str str))))
(forward-line)
;; Text may contain those nasty intangible properties, but that
;; shouldn't prevent us from counting those lines.
(let ((inhibit-point-motion-hooks t))
(forward-line))
(setq line (1+ line)))
(set-window-margins win width (cdr (window-margins win)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment