Subject: Re: vi core dump
To: Patrick Welche <>
From: Aymeric Vincent <>
List: current-users
Date: 12/30/2001 00:13:11
Patrick Welche <> writes:

> > Can you tell when it last worked for you? And which precise version of
> > nvi and libcurses are you using?
> No, and I won't be back in the office for a while yet..

It's okay, the bug has been analyzed and I sent a patch to Brett Lymn,
who will apply it if he thinks it's OK.

In short, the problem comes from the fact that nvi calls endwin() and
newterm() at every resize event, and the curses library is confused by
this "weird" behaviour.

This buggy behaviour did not and does not occur with initscr() because
initscr() is by essence allowed to make certain assumptions
(i.e. overwrite a lot of global variables) that newterm() might not be
allowed to.

Take care,