diff options
| author | Doug Barton <dougb@FreeBSD.org> | 2002-06-18 07:59:59 +0000 |
|---|---|---|
| committer | Doug Barton <dougb@FreeBSD.org> | 2002-06-18 07:59:59 +0000 |
| commit | 58123842e5f72540c7627fb8c84192a3a51c4aee (patch) | |
| tree | 2bd73ac976cfca91fd2ce3573481cbe74d39e624 /gnu | |
| parent | 53777b2a046938af87709f80f466ff2f7a1d6cd5 (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/lib/libdialog/textbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/lib/libdialog/textbox.c b/gnu/lib/libdialog/textbox.c index bfbf81bd3811..8c6e1a1d9b81 100644 --- a/gnu/lib/libdialog/textbox.c +++ b/gnu/lib/libdialog/textbox.c @@ -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() */ |
