]> git.baikalelectronics.ru Git - kernel.git/commit
menuconfig: wrap long help lines
authorVadim Bendebury (вб) <vbendeb@google.com>
Sun, 20 Dec 2009 08:29:49 +0000 (00:29 -0800)
committerMichal Marek <mmarek@suse.cz>
Tue, 2 Feb 2010 13:33:55 +0000 (14:33 +0100)
commitdb86d623327da67172085897474cbb1955a8f175
treeb75965f0cc17567b1b7723094e1e9358e23c3b12
parenta3ab2d8fffdf1b0050937acca950215db9c50dfb
menuconfig: wrap long help lines

Help text for certain config options is very extensive (the text
includes the names of all  other options the option in question depends
on). Long lines are not wrapped, making it impossible to see the list
without scrolling horizontally.

This patch adds some logic which wraps help screen lines at word
boundaries to prevent truncating.

Tested by running

  ARCH=powerpc make menuconfig O=/tmp/build

which shows that the long lines are now wrapped, and

 ARCH=powerpc make xconfig O=/tmp/build

to demonstrate that it still compiles and operates as expected.

Signed-off-by: Vadim Bendebury <vbendeb@google.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/kconfig/expr.c
scripts/kconfig/lkc.h
scripts/kconfig/mconf.c
scripts/kconfig/util.c