screen: don't check for every character whether there is still enough space
Just allocate ample space up front and thus discard the delaying 'if' for each and every character. In most cases this will allocate far too much, but that hardly matters: it is freed again as soon as the line is printed.
Showing
+2 -27
Please register or sign in to comment