mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 14:51:36 +03:00
tweaks: don't bother reallocating the squeezed string, just terminate it
The string will be rewrapped right after, within microseconds.
This commit is contained in:
parent
a5869ba450
commit
4788c5f97d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user