[tin-dev] [PATCH] missing initial default for editor_format (was: [tin 2.6.2] snapshots)
Urs Janßen
urs at tin.org
Tue Mar 29 07:08:32 CEST 2022
Urs Janßen wrote:
> New snapshots available here:
on the initial start (no tinrc yet) we fail to set a default for editor_format
(didn't dig when it got lost - I guess it was there some tine in the past);
as it will be silently fixed on the 2nd start it wasn't really noticed.
=== modified file 'src/init.c'
--- src/init.c 2022-02-21 22:38:50 +0000
+++ src/init.c 2022-03-26 15:40:14 +0000
@@ -854,6 +854,7 @@
}
strcpy(tinrc.mailer_format, MAILER_FORMAT);
my_strncpy(mailer, get_val(ENV_VAR_MAILER, DEFAULT_MAILER), sizeof(mailer) - 1);
+ STRCPY(tinrc.editor_format, TIN_EDITOR_FMT);
#ifndef DISABLE_PRINTING
strcpy(tinrc.printer, DEFAULT_PRINTER);
#endif /* !DISABLE_PRINTING */
More information about the tin-dev
mailing list