From patchwork Sat Jan 9 16:47:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nir Tzachar X-Patchwork-Id: 71939 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o09GlQdt023322 for ; Sat, 9 Jan 2010 16:47:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754620Ab0AIQr0 (ORCPT ); Sat, 9 Jan 2010 11:47:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754659Ab0AIQr0 (ORCPT ); Sat, 9 Jan 2010 11:47:26 -0500 Received: from mail-fx0-f225.google.com ([209.85.220.225]:48099 "EHLO mail-fx0-f225.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754620Ab0AIQrZ (ORCPT ); Sat, 9 Jan 2010 11:47:25 -0500 Received: by fxm25 with SMTP id 25so13438205fxm.21 for ; Sat, 09 Jan 2010 08:47:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=T5Pxk5yt2fZR01SjNO9RkCR/f6bgiMssOtrBCuCOoH0=; b=DDB0TkRsu5U29HY0Z4dGknJa/yokZkma/qmtfvloU+eikUTr77+UJ+XYv4fyN0m3yD OD8aINj3lwypWdFr2G0X+0/ukKg2FrX7k/0BEg7N9en2FjKaoHRzhi/02AKu4vTQZAAT qwX5iBCaqQAkGq6Z9lWNnB6cIFa6AHSM2mR1M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=UdzNUfy64u+qrX70YaBq7lAKcOaH3oaJ7eHtL9MrDp+N8s9E+gvT3vKFcjHHh51smk CMFzP+Xw393fRcj/80XBP6c/A6cX7SFp5Ox3eKzwiQj99oluktpOBtD6X8rP71jA9bh7 NE+LfBdsq0SjZAkUVUeHg0XAaUe1gCj2/IGD4= MIME-Version: 1.0 Received: by 10.223.95.79 with SMTP id c15mr2060397fan.31.1263055641643; Sat, 09 Jan 2010 08:47:21 -0800 (PST) In-Reply-To: <1262875968-1078-1-git-send-email-mmarek@suse.cz> References: <1262875968-1078-1-git-send-email-mmarek@suse.cz> Date: Sat, 9 Jan 2010 18:47:21 +0200 Message-ID: <9b2db90b1001090847n5d294f26re43686722435742f@mail.gmail.com> Subject: Re: [PATCH 0/2] nconfig From: Nir Tzachar To: Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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,