summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-05-09 10:48:41 +1000
committerAndrew Pamment <apamment@yandex.com>2019-05-09 10:48:41 +1000
commitddd45d5ed2aaf96e42f4cdcc59f8a625274430ee (patch)
treeac0bf2757ff8b8e7e69eb867de6dbc489aa72bfc
parentc2b2b40c76542ae3896a4b71655e2896949732b9 (diff)
Add a pause on internal editor quoting
-rw-r--r--src/mail_menu.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mail_menu.c b/src/mail_menu.c
index ba7e45a..53f7f1f 100644
--- a/src/mail_menu.c
+++ b/src/mail_menu.c
@@ -260,7 +260,8 @@ char *editor(struct user_record *user, char *quote, int quotelen, char *from, in
char next_line_buffer[80];
struct ptr_vector content;
struct ptr_vector quotecontent;
-
+ int lines;
+
memset(next_line_buffer, 0, 80);
init_ptr_vector(&quotecontent);
init_ptr_vector(&content);
@@ -391,8 +392,16 @@ char *editor(struct user_record *user, char *quote, int quotelen, char *from, in
} else {
s_printf("\r\n");
+ lines = 0;
for (i = 0; i < ptr_vector_len(&quotecontent); i++) {
s_printf(get_string(88), i, ptr_vector_get(&quotecontent, i));
+ lines ++;
+ if (lines == 22) {
+ lines = 0;
+ s_printf(get_string(185));
+ s_getchar();
+ s_printf("\r\n");
+ }
}
s_printf(get_string(90));