                                               false)
                                            (object/by-tag :editor))]
                           (doseq [ed open]
-                            (warn-delete del ed)
+                            (warn-delete ed del)
                             (make-transient-dirty ed))))))
 
 (behavior ::watched.rename

                                                         ]})
                              (reload ed)))))))

(defn warn-delete [f ed]
  (active-warn ed {:header (str "File deleted: " f)
                   :body "This file seems to have been deleted and we've marked it as unsaved."
                   :buttons [{:label "Save as.."

          :reaction (fn [ws del]
                      (if-let [ed (first (by-path del))]
                        (do
                          (warn-delete ed del)
                          (make-transient-dirty ed)
                          (when-let [ts (:lt.objs.tabs/tabset @ed)]
                            (object/raise ts :tab.updated)))
