bool past_first_line = FALSE;
for (i = 0; i < par_len; i++) {
- size_t indent_len = quote_len +
+ indent_len = quote_len +
indent_length(indent_line->data + quote_len);
if (indent_len != strlen(indent_string)) {
* in the next line. */
if (mark_beginbuf == next_line) {
mark_beginbuf = current;
- mark_beginx += line_len;
+ mark_beginx += line_len - indent_len;
}
#endif
/* Break the line. If this isn't the last line of the
* paragraph, add a space after where we break it. */
null_at(¤t->data, break_pos);
+
if (par_len > 1) {
current->data = charealloc(current->data,
break_pos + 2);