CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/03/03 08:17:29

Modified files:
        usr.bin/mg     : file.c 

Log message:
improve the "No changes need to be saved" check

Instead of checking for the BFCHG flag in buffsave(), bubble it up to
filesave(), which is the interactive function.  This avoids prompting
for a filepath for e.g. when attempting to save the *scratch* buffer.

The only other place where buffsave() is called, anycb in buffer.c is
already guarding for a set file name and the BFCHG flag.

Initial diff from Han Boetes (hboetes at gmail), tweaked by me.

Reply via email to