Allow callers to override editor command

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

View File

@@ -606,7 +606,8 @@ window_buffer_start_edit(struct window_buffer_modedata *data,
ed->name = xstrdup(paste_buffer_name(pb));
ed->pb = pb;
ed->editor = spawn_editor(c, buf, len, window_buffer_edit_close_cb, ed);
ed->editor = spawn_editor(c, buf, len, NULL, window_buffer_edit_close_cb,
ed);
if (ed->editor == NULL)
window_buffer_finish_edit(ed);
else {