Fix for line numbers on internal editor

This commit is contained in:
Andrew Pamment 2018-10-11 22:04:48 +10:00
parent d8c32639e4
commit 37e728b749

View File

@ -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(&quotecontent, 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) {