tweaks: don't bother reallocating the squeezed string, just terminate it

The string will be rewrapped right after, within microseconds.
master
Benno Schulenberg 2019-04-04 13:54:32 +02:00
parent a5869ba450
commit 4788c5f97d
1 changed files with 1 additions and 1 deletions

View File

@ -1761,7 +1761,7 @@ void squeeze(linestruct *line, size_t skip)
}
if (shrunk > 0) {
null_at(&newdata, to - newdata);
*to = '\0';
free(line->data);
line->data = newdata;
} else