Edit

IABSD.fr/src/usr.bin/mg

Branch :

  • Show log

    Commit

  • Author : op
    Date : 2026-03-03 15:17:29
    Hash : 5e9cb263
    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.