summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/name.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/name.c b/mbbsd/name.c
index a5d92e11..ac69873f 100644
--- a/mbbsd/name.c
+++ b/mbbsd/name.c
@@ -182,8 +182,10 @@ namecomplete2(struct Vector *namelist, const char *prompt, char *data)
move(y, scrx + count);
// get input
- if ((ch = igetch()) == EOF)
+ if ((ch = igetch()) == EOF) {
+ Vector_delete(&sublist);
break;
+ }
if (ch == KEY_ENTER) {
*temp = '\0';