From 37e728b7493592880ed1cbb08d1902b6a5555508 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Thu, 11 Oct 2018 22:04:48 +1000 Subject: [PATCH] Fix for line numbers on internal editor --- src/mail_menu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mail_menu.c b/src/mail_menu.c index 2f273f8..1790509 100644 --- a/src/mail_menu.c +++ b/src/mail_menu.c @@ -712,6 +712,7 @@ char *editor(struct user_record *user, char *quote, int quotelen, char *from, in for (i = qfrom; i <= qto; i++) { char *copy = strdup(ptr_vector_get("econtent, i)); ptr_vector_append(&content, copy); + lines++; } s_printf(get_string(86)); @@ -785,6 +786,7 @@ char *editor(struct user_record *user, char *quote, int quotelen, char *from, in } } else { ptr_vector_append(&content, strdup(linebuffer)); + lines++; } } if (quote != NULL) {