cx-cc will try to create a popup for selecting docs to save.
This fails when a popup is active.
Instead of silently failing, abort the popup so the user can
try again.
Signed-off-by: NeilBrown <neil@brown.name>
}
p = call_ret(pane, "PopupTile", ci->focus, 0, NULL, "DM");
- // FIXME if called from a popup, this fails.
- if (!p)
+ if (!p) {
+ /* Probably called from a pop-up. Abort the popup
+ * and let the user try again.
+ */
+ call("Abort", ci->focus);
return Efail;
+ }
attr_set_str(&p->attrs, "done-key", "emacs:deactivate");
return call("docs:show-modified", p);
} else