* [gentoo-commits] portage r11764 - main/trunk/bin
@ 2008-10-31 17:25 99% Zac Medico (zmedico)
0 siblings, 0 replies; 1+ results
From: Zac Medico (zmedico) @ 2008-10-31 17:25 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-10-31 17:25:44 +0000 (Fri, 31 Oct 2008)
New Revision: 11764
Modified:
main/trunk/bin/isolated-functions.sh
Log:
Bug #236609 - Fix columns calculation for TERM="dumb". Thanks to Ulrich M?\195?\188ller
<ulm@g.o> for the patch.
Modified: main/trunk/bin/isolated-functions.sh
===================================================================
--- main/trunk/bin/isolated-functions.sh 2008-10-31 05:07:28 UTC (rev 11763)
+++ main/trunk/bin/isolated-functions.sh 2008-10-31 17:25:44 UTC (rev 11764)
@@ -371,7 +371,7 @@
(( COLS > 0 )) || (( COLS = 80 ))
COLS=$((${COLS} - 8)) # width of [ ok ] == 7
# Adjust COLS so that eend works properly on a standard BSD console.
- [ "${TERM}" = "cons25" ] && COLS=$((${COLS} - 1))
+ [[ $TERM = cons25 || $TERM = dumb ]] && ((COLS--))
# Now, ${ENDCOL} will move us to the end of the
# column; irregardless of character width
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2008-10-31 17:25 99% [gentoo-commits] portage r11764 - main/trunk/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox