diff --git a/doc/fixes36.1 b/doc/fixes36.1 index 0e09c8eb8..db70c2f94 100644 --- a/doc/fixes36.1 +++ b/doc/fixes36.1 @@ -831,7 +831,8 @@ win32gui: save and load map colors from registry X11: add new character selection dialog, and obey player_selection:dialog unix: reduce makefile verbosity by default win32gui: new player selection dialog -tty, x11, qt4: compile-time option to allow some prompts remember the input +tty, X11, qt4, win32gui: compile-time option to allow some prompts remember + the input NetHack Community Patches (or Variation) Included diff --git a/win/win32/mswproc.c b/win/win32/mswproc.c index c0cd44f5d..30b1f5b2b 100644 --- a/win/win32/mswproc.c +++ b/win/win32/mswproc.c @@ -1657,8 +1657,13 @@ mswin_getlin(const char *question, char *input) mswin_clear_nhwindow(WIN_MESSAGE); mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, question, 0); mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, " ", 1); +#ifdef EDIT_GETLIN + mswin_putstr_ex(WIN_MESSAGE, ATR_BOLD, input, 0); + len = strlen(input); +#else input[0] = '\0'; len = 0; +#endif ShowCaret(mswin_hwnd_from_winid(WIN_MESSAGE)); done = FALSE; while (!done) {