* Re: [PATCH] ncofig v7 minor fix
[not found] <1263360755-32281-1-git-send-email-nir.tzachar@gmail.com>
@ 2010-01-13 13:43 ` Michal Marek
0 siblings, 0 replies; only message in thread
From: Michal Marek @ 2010-01-13 13:43 UTC (permalink / raw)
To: Nir Tzachar; +Cc: linux-kbuild, Jan Engelhardt
On 13.1.2010 06:32, Nir Tzachar wrote:
> This patch fixes two problems reported by Jan Engelhardt:
> 1) Border is now properly placed, to always be visible
> 2) Long menu items are properly displayed
>
> Signed-off-by: Nir Tzachar <nir.tzachar@gmail.com>
Thanks, applied, but please CC linux-kbuild@vger.kernel.org next time.
Michal
>
> ---
> scripts/kconfig/nconf.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c
> index 8c56150..cab6bb0 100644
> --- a/scripts/kconfig/nconf.c
> +++ b/scripts/kconfig/nconf.c
> @@ -984,7 +984,7 @@ static void build_conf(struct menu *menu)
> break;
> default:
> tmp = 2 + strlen(sym_get_string_value(sym));
> - item_make(menu, 's', "(%s)",
> + item_make(menu, 's', " (%s)",
> sym_get_string_value(sym));
> tmp = indent - tmp + 4;
> if (tmp < 0)
> @@ -1072,8 +1072,8 @@ static void show_menu(const char *prompt, const char *instructions,
>
> /* position the menu at the middle of the screen */
> scale_menu(curses_menu, &maxy, &maxx);
> - maxx = min(maxx, mwin_max_cols);
> - maxy = mwin_max_lines-1;
> + maxx = min(maxx, mwin_max_cols-2);
> + maxy = mwin_max_lines-2;
> menu_window = derwin(main_window,
> maxy,
> maxx,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-13 13:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1263360755-32281-1-git-send-email-nir.tzachar@gmail.com>
2010-01-13 13:43 ` [PATCH] ncofig v7 minor fix Michal Marek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.