Fix for line numbers on internal editor
This commit is contained in:
parent
d8c32639e4
commit
37e728b749
@ -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) {
|
||||
|
Reference in New Issue
Block a user