forked from github/server
saving also on 'S' (since F2 isn't reliable)
This commit is contained in:
parent
7c80bbfebb
commit
4d82a5eca3
|
@ -865,9 +865,10 @@ handlekey(state * st, int c)
|
||||||
st->wnd_info->update |= 1;
|
st->wnd_info->update |= 1;
|
||||||
st->wnd_status->update |= 1;
|
st->wnd_status->update |= 1;
|
||||||
break;
|
break;
|
||||||
|
case 'S':
|
||||||
case KEY_SAVE:
|
case KEY_SAVE:
|
||||||
case KEY_F(2):
|
case KEY_F(2):
|
||||||
if (st->modified) {
|
/* if (st->modified) */ {
|
||||||
char datafile[MAX_PATH];
|
char datafile[MAX_PATH];
|
||||||
|
|
||||||
askstring(st->wnd_status->handle, "save as:", datafile, sizeof(datafile));
|
askstring(st->wnd_status->handle, "save as:", datafile, sizeof(datafile));
|
||||||
|
|
Loading…
Reference in New Issue