aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/mconf.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2005-01-03 21:06:13 +0100
committerSam Ravnborg <sam@mars.ravnborg.org>2005-01-03 21:06:13 +0100
commitdd5c154428950357a5fb885b4d3c86a8fbefd92d (patch)
treecd9016a68cc7f1887ea7d78bb94362a1441a2143 /scripts/kconfig/mconf.c
parent0a299616d4b14ec5b72ec3965ea38f0460e7940c (diff)
downloadhistory-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/kconfig/mconf.c')
-rw-r--r--scripts/kconfig/mconf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index 995f800b1bd0d..7cb4112480aac 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);
}