summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfeed_curses.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sfeed_curses.c b/sfeed_curses.c
index 4f92115..a12b41f 100644
--- a/sfeed_curses.c
+++ b/sfeed_curses.c
@@ -983,6 +983,8 @@ lineeditor(void)
size_t cap = 0, nchars = 0;
int ch;
+ if (usemouse)
+ mousemode(0);
for (;;) {
if (nchars + 2 >= cap) {
cap = cap ? cap * 2 : 32;
@@ -1011,9 +1013,12 @@ lineeditor(void)
else /* no signal, time-out or SIGCHLD or SIGWINCH */
continue; /* do not cancel: process signal later */
free(input);
- return NULL; /* cancel prompt */
+ input = NULL;
+ break; /* cancel prompt */
}
}
+ if (usemouse)
+ mousemode(usemouse);
return input;
}