From patchwork Mon Dec 14 13:45:56 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nir Tzachar X-Patchwork-Id: 67290 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nBEDk09D029532 for ; Mon, 14 Dec 2009 13:46:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754733AbZLNNp7 (ORCPT ); Mon, 14 Dec 2009 08:45:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754749AbZLNNp7 (ORCPT ); Mon, 14 Dec 2009 08:45:59 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:53529 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754733AbZLNNp6 convert rfc822-to-8bit (ORCPT ); Mon, 14 Dec 2009 08:45:58 -0500 Received: by fxm5 with SMTP id 5so3531237fxm.28 for ; Mon, 14 Dec 2009 05:45:56 -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 :content-transfer-encoding; bh=z+Pn4LtiqMLb95FLkzRYn5p1oeSYpM0OCBMkLLfefL4=; b=jbV7aXvUxSWuGyik0sBCAPDSQ1GtsK3stmW51GR6WPVhn4EeRYWWe9jI2ycgCTxgsl 1m91JNA7dtW6Uz1gJ+pH0RuZDh5GBwBrinV0dBCWY6qsBLFuwgRlTxIOUBQzaqesZWEF oB/ChH/Dsa+gbVI/AxveXAADr3N419duoFCOU= 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:content-transfer-encoding; b=VFkVjOBZWYO1oJQsoJ3xgJywVKKSvpIzxu5rG7vOLwndm56EIW9dA7Q4TZGLOBpCYA g9UeS20atBzdViDMJ48/TkEjo/NmXMbvn5Jbw15jnbMCsSBdMJ0+pBnNPwhqUq+I96jo k/UujAZGPg3Aa/yDCgqHjIt3qyYbyHCs6oXEY= MIME-Version: 1.0 Received: by 10.223.14.140 with SMTP id g12mr5675539faa.50.1260798356847; Mon, 14 Dec 2009 05:45:56 -0800 (PST) In-Reply-To: References: <9b2db90b0912122323w25d2d815o70d0bd2f1e19a228@mail.gmail.com> <9b2db90b0912132141j6b06d26dgd1e14acf3631de13@mail.gmail.com> Date: Mon, 14 Dec 2009 15:45:56 +0200 Message-ID: <9b2db90b0912140545i158cc4b5o9cd72feca9e8983f@mail.gmail.com> Subject: Re: nconfig v7 From: Nir Tzachar To: Jan Engelhardt Cc: Linux Kernel Mailing List , linux-kbuild@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,