saving also on 'S' (since F2 isn't reliable)

This commit is contained in:
Enno Rehling 2006-04-16 17:26:50 +00:00
parent 7c80bbfebb
commit 4d82a5eca3
1 changed files with 2 additions and 1 deletions

View File

@ -865,9 +865,10 @@ handlekey(state * st, int c)
st->wnd_info->update |= 1;
st->wnd_status->update |= 1;
break;
case 'S':
case KEY_SAVE:
case KEY_F(2):
if (st->modified) {
/* if (st->modified) */ {
char datafile[MAX_PATH];
askstring(st->wnd_status->handle, "save as:", datafile, sizeof(datafile));