Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] eselect r497 - in trunk: . libs
Date: Thu, 23 Apr 2009 06:30:18
Message-Id: E1LwsRr-0008EV-Np@stork.gentoo.org
1 Author: ulm
2 Date: 2009-04-23 06:30:15 +0000 (Thu, 23 Apr 2009)
3 New Revision: 497
4
5 Modified:
6 trunk/ChangeLog
7 trunk/libs/output.bash.in
8 Log:
9 Default to a width of 80 characters, not 79.
10
11 Modified: trunk/ChangeLog
12 ===================================================================
13 --- trunk/ChangeLog 2009-04-22 22:51:37 UTC (rev 496)
14 +++ trunk/ChangeLog 2009-04-23 06:30:15 UTC (rev 497)
15 @@ -1,5 +1,8 @@
16 2009-04-23 Ulrich Mueller <ulm@g.o>
17
18 + * libs/output.bash.in (get_column_width): Default to a width of
19 + 80 characters, not 79.
20 +
21 * modules/modules.eselect (do_list): Assign the name of the module
22 to ESELECT_MODULE_NAME, bug 220116.
23
24
25 Modified: trunk/libs/output.bash.in
26 ===================================================================
27 --- trunk/libs/output.bash.in 2009-04-22 22:51:37 UTC (rev 496)
28 +++ trunk/libs/output.bash.in 2009-04-23 06:30:15 UTC (rev 497)
29 @@ -190,10 +190,10 @@
30 # Get current column width
31 get_column_width() {
32 if [[ -z "${COLS}" ]] ; then
33 - COLS=79
34 + COLS=80
35 if [[ -t 1 ]] ; then
36 - COLS=( $(stty size 2>/dev/null) )
37 - is_number "${COLS[1]}" && COLS=${COLS[1]} || COLS=79
38 + local size=( $(stty size 2>/dev/null) )
39 + is_number "${size[1]}" && COLS=${size[1]}
40 fi
41 fi