Modified (ne’s manual)

Next: Syntax, Previous: SaveDefPrefs, Up: Preferences Commands [Contents][Index]

#### 4.9.29 Modified

Syntax: `Modified [0|1]`
Abbreviation: `MOD`

sets the modified flag. This flag is set automatically whenever a document is modified, and is used to determine which documents need to be saved by `SaveAll` or when `ne` exits. Normally you would not alter this flag, but when a document is inadvertently modified and you don’t want the changes saved, `Modified` provides a way to make `ne` consider the document unchanged.

If you invoke `Modified` with no arguments, it will toggle the flag. If you specify 0 or 1, the flag will be set to false or true, respectively. An asterisk (‘`*`’) will appear on the status bar when this flag is set. If your terminal supports underlining, it will be underlined if the corresponding file’s modification time has changed since the document was loaded or saved (perhaps by another user).