summaryrefslogtreecommitdiff
path: root/lisp/linum.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2009-01-18 01:45:34 +0000
committerJuanma Barranquero <lekktu@gmail.com>2009-01-18 01:45:34 +0000
commit0ca77a9234ff1555b69dcba48bc9a383c404c3ef (patch)
tree5ae2b82b59b4de011d7a15ce48820ae8e98022e8 /lisp/linum.el
parent377952e006da45c3ba6ef21b8adae22a4e91ae7f (diff)
downloademacs-0ca77a9234ff1555b69dcba48bc9a383c404c3ef.tar.gz
* linum.el (linum-update-window): Use `delq' instead of `delete';
compare strings with `equal-including-properties'.
Diffstat (limited to 'lisp/linum.el')
-rw-r--r--lisp/linum.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/linum.el b/lisp/linum.el
index 655accdeb5a..2108431b474 100644
--- a/lisp/linum.el
+++ b/lisp/linum.el
@@ -146,10 +146,11 @@ and you have to scroll or press \\[recenter-top-bottom] to update the numbers."
(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