summaryrefslogtreecommitdiff
path: root/mail/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/source.c')
-rw-r--r--mail/source.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/source.c b/mail/source.c
index 802e298fd..80b7929f2 100644
--- a/mail/source.c
+++ b/mail/source.c
@@ -49,7 +49,7 @@ mail_source (int argc, char **argv)
{
mu_stream_t input;
int save_term;
- struct mu_locus locus;
+ struct mu_locus_range locus = MU_LOCUS_RANGE_INITIALIZER;
int rc;
if (argc != 2)
@@ -69,15 +69,15 @@ mail_source (int argc, char **argv)
save_term = interactive;
interactive = 0;
- locus.mu_file = argv[1];
- locus.mu_line = 0;
- locus.mu_col = 0;
+ locus.beg.mu_file = argv[1];
+ locus.beg.mu_line = 0;
+ locus.beg.mu_col = 0;
mu_stream_ioctl (mu_strerr, MU_IOCTL_LOGSTREAM,
- MU_IOCTL_LOGSTREAM_SET_LOCUS, &locus);
+ MU_IOCTL_LOGSTREAM_SET_LOCUS_RANGE, &locus);
mail_mainloop (source_readline, input, 0);
interactive = save_term;
mu_stream_ioctl (mu_strerr, MU_IOCTL_LOGSTREAM,
- MU_IOCTL_LOGSTREAM_SET_LOCUS, NULL);
+ MU_IOCTL_LOGSTREAM_SET_LOCUS_RANGE, NULL);
mu_stream_unref (input);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.