From 1a1baebf95b493bf62528ad8c00900cb789a96bd Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 19 Jan 2025 14:57:51 +0300 Subject: support :EF for saving a file before closing it Analoguous to :EX, but always saves the file like EW$, not only if it's dirty. --- src/ring.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ring.h') diff --git a/src/ring.h b/src/ring.h index e988ae0..34293b9 100644 --- a/src/ring.h +++ b/src/ring.h @@ -100,6 +100,8 @@ void teco_ring_cleanup(void); TECO_DECLARE_STATE(teco_state_edit_file); TECO_DECLARE_STATE(teco_state_save_file); +void teco_state_ecommand_close(teco_machine_main_t *ctx, GError **error); + /* * Helper functions applying to any current * document (whether a buffer or QRegister). -- cgit v1.2.3