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:
parent
7bc7869122
commit
ca2ca2ab60
@ -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() */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user