From fbab5e252f22de37d42cc6c2a014d690a9312565 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 13 Jul 2025 18:35:32 +0300 Subject: implemented command for reading a file into the current buffer * This command exists in Video TECO. In Video TECO it also supports reading multiple files with a glob pattern -- we do not support that as I am not convinced of its usefulness. * teco_view_load() has been extended, so it can read into dot without discarding the existing document. --- src/qreg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qreg.c') diff --git a/src/qreg.c b/src/qreg.c index 91f0deb..f08be17 100644 --- a/src/qreg.c +++ b/src/qreg.c @@ -337,7 +337,7 @@ teco_qreg_plain_load(teco_qreg_t *qreg, const gchar *filename, GError **error) * So if loading fails, teco_qreg_current will be * made the current document again. */ - if (!teco_view_load(teco_qreg_view, filename, error)) + if (!teco_view_load(teco_qreg_view, filename, TRUE, error)) return FALSE; if (teco_qreg_current) -- cgit v1.2.3