some combinations of status line and screen refresh don't give a
authorPaul Fox <pgf@brightstareng.com>
Fri, 16 Sep 2005 12:20:05 +0000 (12:20 -0000)
committerPaul Fox <pgf@brightstareng.com>
Fri, 16 Sep 2005 12:20:05 +0000 (12:20 -0000)
commit8552aec7fd4380791f44cba4417418e7b1cfb195
tree7ccfc03af841a2155038793a20232f1508e9c1fc
parent2d5e4f6b05bcd566a418aae5b12a7f0dfb2d8e44
some combinations of status line and screen refresh don't give a
correct screen, and bug 215 reports trouble with the status line
on small screens.

with this change a) the status line should always be refreshed
properly, b) the status line is a little shorter than it used to
be ("I" instead of "--INSERT--"), c) the status line will be
truncated if it doesn't fit on the screen, and d) if the screen
is too narrow for an error or transient status message (from
psb() or psbs()), then that message will be followed by a "Hit
Return" prompt.  (it wasn't until i did this last bit that the
size grew.  with this, these changes add about 150 bytes.)

- pgf
editors/vi.c