This changes vi to use resizeterm(3) instead of reinitializing curses on
authorbrynet <brynet@openbsd.org>
Fri, 10 Apr 2015 18:05:51 +0000 (18:05 +0000)
committerbrynet <brynet@openbsd.org>
Fri, 10 Apr 2015 18:05:51 +0000 (18:05 +0000)
commitf43ccfb1789ce9c692e98716be800037eadc1655
tree7d395e3440b4c3d7325ab81df942ab8ccb9a1d40
parent65c4b82ffebab86320a5f2226a48bbcaec6847db
This changes vi to use resizeterm(3) instead of reinitializing curses on
window resizes, which was leaking massive amounts of memory.

Try observing vi in top(1) and while resizing the window a few times
before and aftering applying this diff..

Also some more comment cleanup and another memory leak..

From github.com/lichray/nvi2
879d2ad6dd4a4343eb0a588ebfe637e1c9845bc4
a8c38480adb030a05bbb2aafec6067dd65d8c2eb

ok millert@
usr.bin/vi/cl/cl_screen.c
usr.bin/vi/cl/cl_term.c