diff options
author | Ulrich Müller <ulm@gentoo.org> | 2009-04-23 06:30:15 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2009-04-23 06:30:15 +0000 |
commit | b4ee8b2ff4238771adba0685091f69f8192077f2 (patch) | |
tree | a2448d5eade4317f6c1bbd19ca061d85f27e1141 | |
parent | Tiny fix for eselect man page. (diff) | |
download | eselect-b4ee8b2ff4238771adba0685091f69f8192077f2.tar.gz eselect-b4ee8b2ff4238771adba0685091f69f8192077f2.tar.bz2 eselect-b4ee8b2ff4238771adba0685091f69f8192077f2.zip |
Default to a width of 80 characters, not 79.
svn path=/trunk/; revision=497
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | libs/output.bash.in | 6 |
2 files changed, 6 insertions, 3 deletions
@@ -1,5 +1,8 @@ 2009-04-23 Ulrich Mueller <ulm@gentoo.org> + * libs/output.bash.in (get_column_width): Default to a width of + 80 characters, not 79. + * modules/modules.eselect (do_list): Assign the name of the module to ESELECT_MODULE_NAME, bug 220116. diff --git a/libs/output.bash.in b/libs/output.bash.in index 628acf5..2c831ea 100644 --- a/libs/output.bash.in +++ b/libs/output.bash.in @@ -190,10 +190,10 @@ write_numbered_list() { # Get current column width get_column_width() { if [[ -z "${COLS}" ]] ; then - COLS=79 + COLS=80 if [[ -t 1 ]] ; then - COLS=( $(stty size 2>/dev/null) ) - is_number "${COLS[1]}" && COLS=${COLS[1]} || COLS=79 + local size=( $(stty size 2>/dev/null) ) + is_number "${size[1]}" && COLS=${size[1]} fi fi |