]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't delete nil overlays.
authorPer Abrahamsen <abraham@dina.kvl.dk>
Thu, 19 Jun 1997 15:31:34 +0000 (15:31 +0000)
committerPer Abrahamsen <abraham@dina.kvl.dk>
Thu, 19 Jun 1997 15:31:34 +0000 (15:31 +0000)
lisp/wid-edit.el

index 20e3780a2c3bb6d3f51783ab28cb2a4392f57c45..f5ae7eaef0b8acf781e59db9ac9fa41245c8d01f 100644 (file)
@@ -815,8 +815,10 @@ button end points."
        (children (widget-get widget :children)))
     (set-marker from nil)
     (set-marker to nil)
-    (delete-overlay button)
-    (delete-overlay field)
+    (when button
+      (delete-overlay button))
+    (when field
+      (delete-overlay field))
     (mapcar 'widget-leave-text children)))
 
 ;;; Keymap and Commands.