• Benno Schulenberg's avatar
    display: don't let a SIGCONT write anything to the screen · 84ff9ebb
    Benno Schulenberg authored
    The old praxis of calling total_refresh() upon a SIGCONT was confusing,
    because the screen would look as if nano had returned from suspension,
    but in fact the shell was still active.
    
    Instead of calling total_refresh(), put a no-op key into ncurses' buffer,
    so that, when nano actually does return out of suspension (through 'fg'),
    this key will be read and discarded, upon which nano will go sit and wait
    for the next key, just before which it calls doupdate().  The latter is
    all we need to get the entire screen restored.
    
    This also fixes https://savannah.gnu.org/bugs/?51131 for "tiny".
    84ff9ebb
nano.c 72.6 KB