Allow callers to override editor command

This commit is contained in:
Michael Grant
2026-09-14 05:35:00 +01:00
parent 48bbaa1172
commit d2817c5c3b
4 changed files with 8 additions and 7 deletions

View File

@@ -2104,8 +2104,8 @@ window_customize_start_edit(struct window_customize_modedata *data,
buf = "\n";
len = 1;
}
ed->editor = spawn_editor(c, buf, len, window_customize_edit_close_cb,
ed);
ed->editor = spawn_editor(c, buf, len, NULL,
window_customize_edit_close_cb, ed);
free(value);
if (ed->editor == NULL)
window_customize_finish_edit(ed);