1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-27 16:39:08 +00:00

In addition to exiting the dialog via ESC, the user could also have

exited via \r, \n, or ' ' (space); all of which are valid,
non-error responses.
This commit is contained in:
Doug Barton 2002-06-13 23:39:35 +00:00
parent 7bc7869122
commit ca2ca2ab60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98195

View File

@ -424,7 +424,7 @@ int dialog_textbox(unsigned char *title, unsigned char *file, int height, int wi
delwin(dialog);
free(buf);
close(fd);
return -1; /* ESC pressed */
return (key == ESC ? -1 : 0);
}
/* End of dialog_textbox() */