Rather than special strcmp handling, use DEF_CMD_CLOSED to ensure
Close:mark can be called after a pane has been closed.
Signed-off-by: NeilBrown <neil@brown.name>
ci.key[0] != 'C' && /* Compile will often optimise
* the strncmp away
*/
- strncmp(ci.key, "Close", 5) != 0)
+ strcmp(ci.key, "Close") != 0)
/* This pane cannot accept anything but
- * "Close" or "Close:mark".
+ * "Close"
*/
return Efallthrough;
ci.comm = home->handle;
Py_DECREF(p);
}
-DEF_CMD(python_close_mark)
+DEF_CMD_CLOSED(python_close_mark)
{
struct mark *m = ci->mark;
return 1;
}
-DEF_CMD(render_lines_close_mark)
+DEF_CMD_CLOSED(render_lines_close_mark)
{
struct mark *m = ci->mark;