no manual saving, auto-save changes during /set

This commit is contained in:
Berke Viktor
2011-11-23 13:58:50 +01:00
parent 9ab089e2e4
commit 08ee077396
2 changed files with 7 additions and 1 deletions

View File

@@ -1084,7 +1084,13 @@ cmd_set (struct session *sess, char *tbuf, char *word[], char *word_eol[])
while (vars[i].name);
if (!finds && !quiet)
{
PrintText (sess, "No such variable.\n");
}
else if (prefs.autosave && !save_config ())
{
PrintText (sess, "Error saving changes to disk.\n");
}
return TRUE;
}