Skip to content
Snippets Groups Projects
Commit 1d2fc345 authored by deuce's avatar deuce
Browse files

Fix bug in last commit.

-- "he breaks more than he fixes"
parent bb3040bf
Branches
Tags
No related merge requests found
......@@ -526,7 +526,7 @@ static char *wrap_paragraphs(struct paragraph *paragraph, int outlen, BOOL handl
ws_len = get_ws_len(inp, outcol);
word_len = get_word_len(inp+ws_len.bytes, -1);
// Do we need to chop a long word?
if (word_len.len > (outlen - prefix_cols)))
if (word_len.len > (outlen - prefix_cols))
word_len = get_word_len(inp + ws_len.bytes, outlen - ws_len.bytes - outcol);
if (outcol + ws_len.len + word_len.len > outlen) {
inp += ws_len.bytes;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment