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

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() */