(gnus-remove-image): Fix previous commit.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 10 Jun 2004 02:52:27 +0000 (02:52 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 10 Jun 2004 02:52:27 +0000 (02:52 +0000)
lisp/gnus-ems.el

index dcea8f6..296a4ca 100644 (file)
                    (and (setq start
                               (next-single-property-change start 'display))
                         (setq val (get-text-property start 'display)))))
-      (setq end (next-single-property-change start 'display))
+      (setq end (or (next-single-property-change start 'display)
+                   (point-max)))
       (if (and (equal val image)
               (equal (get-text-property start 'gnus-image-category)
                      category))
            (put-text-property start end 'display nil)
            (when (get-text-property start 'gnus-image-text-deletable)
              (delete-region start end)))
-       (setq start end
-             end nil)))))
+       (unless (= end (point-max))
+         (setq start end
+               end nil))))))
 
 (provide 'gnus-ems)