cbc92a55fc
There are still some oddities because the shell doesn't expect us to reflow. Let's say we have the following where X is the cursor. +-------+ |foobar$| |X | +-------+ Here, the shell explicitly told us to go to a new line after '$'. We don't consider '$' is on the same line as 'foobar'. Decrease the width of that window. +------+ |foobar| |$ | |X | +------+ Let the shell know the new size. It decides to redraw the prompt. It remembers it told us to go to a new line, so the first thing it tells us is to go one line up: to '$' and not 'foobar'. Then it tells us to clear the screen downward from there and to print "foobar$" (and go to new line). Thus we have the following: +------+ |foobar| |foobar| |$ | |X | +------+ |
||
---|---|---|
.. | ||
bin | ||
Makefile.am |