diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-01-03 21:06:13 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2005-01-03 21:06:13 +0100 |
commit | dd5c154428950357a5fb885b4d3c86a8fbefd92d (patch) | |
tree | cd9016a68cc7f1887ea7d78bb94362a1441a2143 /scripts | |
parent | 0a299616d4b14ec5b72ec3965ea38f0460e7940c (diff) | |
download | history-dd5c154428950357a5fb885b4d3c86a8fbefd92d.tar.gz |
kconfig: pass 0, 0 to show_file() to select max size window
From: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Sam Ravbnorg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/mconf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index 995f800b1bd0d3..7cb4112480aac0 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -383,7 +383,7 @@ static void search_conf(char *pattern) fprintf(fp, "No matches found."); regfree(&re); fclose(fp); - show_file(".search.tmp", "Search Results", rows, cols); + show_file(".search.tmp", "Search Results", 0, 0); unlink(".search.tmp"); } @@ -686,7 +686,7 @@ static void show_textbox(const char *title, const char *text, int r, int c) static void show_helptext(const char *title, const char *text) { - show_textbox(title, text, rows, cols); + show_textbox(title, text, 0, 0); } static void show_help(struct menu *menu) @@ -709,7 +709,7 @@ static void show_help(struct menu *menu) static void show_readme(void) { - show_file("scripts/README.Menuconfig", NULL, rows, cols); + show_file("scripts/README.Menuconfig", NULL, 0, 0); } static void show_file(const char *filename, const char *title, int r, int c) @@ -722,8 +722,8 @@ static void show_file(const char *filename, const char *title, int r, int c) } cprint("--textbox"); cprint("%s", filename); - cprint("%d", r); - cprint("%d", c); + cprint("%d", r ? r : rows); + cprint("%d", c ? c : cols); } while (exec_conf() < 0); } |