summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libdialog/textbox.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-05-08 01:43:52 +0000
committerache <ache@FreeBSD.org>1995-05-08 01:43:52 +0000
commit3aa0d024e865f17a08c5a46b95e339d986c5aa5c (patch)
tree8edbbb735af26ba43b28e795b909e5ea7f2c8c1f /gnu/lib/libdialog/textbox.c
parent6228dff953209276c8daa85b754f9103e8eae81c (diff)
downloadFreeBSD-src-3aa0d024e865f17a08c5a46b95e339d986c5aa5c.zip
FreeBSD-src-3aa0d024e865f17a08c5a46b95e339d986c5aa5c.tar.gz
Fix nasty shadow bug sneaked in Marc's commit.
Implement ^K and KEY_EOL as clear end of line Move common code from line_edit to static function Cosmetique changes in textbox
Diffstat (limited to 'gnu/lib/libdialog/textbox.c')
-rw-r--r--gnu/lib/libdialog/textbox.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/textbox.c b/gnu/lib/libdialog/textbox.c
index a5fdedb..b466f79 100644
--- a/gnu/lib/libdialog/textbox.c
+++ b/gnu/lib/libdialog/textbox.c
@@ -653,12 +653,11 @@ static int get_search_term(WINDOW *win, unsigned char *search_term, int height,
waddstr(win, " Search ");
wattrset(win, dialog_attr);
- box_width -= 2;
search_term[0] = '\0';
first = 1;
while (key != ESC) {
- key = line_edit(win, y+1, x+1, -1, box_width, searchbox_attr, first, search_term);
+ key = line_edit(win, y+1, x+1, -1, box_width-2, searchbox_attr, first, search_term);
first = 0;
switch (key) {
case '\n':
OpenPOWER on IntegriCloud