Mercurial > emacs
diff lisp/linum.el @ 101274:4bcf5c96d5ee
* linum.el (linum-update-window): Use `delq' instead of `delete';
compare strings with `equal-including-properties'.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Sun, 18 Jan 2009 01:45:34 +0000 |
parents | a9dc0e7c3f2b |
children | fe22bf79af7f |
line wrap: on
line diff
--- a/lisp/linum.el Sat Jan 17 22:27:54 2009 +0000 +++ b/lisp/linum.el Sun Jan 18 01:45:34 2009 +0000 @@ -146,10 +146,11 @@ (funcall linum-format line))) (visited (catch 'visited (dolist (o (overlays-in (point) (point))) - (when (string= (overlay-get o 'linum-str) str) + (when (equal-including-properties + (overlay-get o 'linum-str) str) (unless (memq o linum-overlays) (push o linum-overlays)) - (setq linum-available (delete o linum-available)) + (setq linum-available (delq o linum-available)) (throw 'visited t)))))) (setq width (max width (length str))) (unless visited