summaryrefslogtreecommitdiffstats
path: root/layman
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-08-06 18:35:20 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-08-06 18:35:20 -0700
commitc3fe77a1e76daa7a2b5a7b92d0061eb2cc44eed8 (patch)
treedb1bc075d2e6ba26643943f3a1f4787bfdaecf50 /layman
parentf4ccd5f6ac6449eee0a5144027ee7faa24a6e3d4 (diff)
downloadlayman-c3fe77a1e76daa7a2b5a7b92d0061eb2cc44eed8.tar.gz
layman-c3fe77a1e76daa7a2b5a7b92d0061eb2cc44eed8.tar.bz2
layman-c3fe77a1e76daa7a2b5a7b92d0061eb2cc44eed8.zip
adjust width for the leading space
Diffstat (limited to 'layman')
-rw-r--r--layman/cli.py2
-rwxr-xr-x[-rw-r--r--]layman/overlays/overlay.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/layman/cli.py b/layman/cli.py
index f545b0e..9690e54 100644
--- a/layman/cli.py
+++ b/layman/cli.py
@@ -39,7 +39,7 @@ class ListPrinter(object):
self.config = config
self.output = self.config['output']
if not self.config['width']:
- self.width = terminal_width()
+ self.width = terminal_width()-1
else:
self.width = self.config['width']
self.srclen = self.width - 43
diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 8eaa77e..2e900e8 100644..100755
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -526,7 +526,7 @@ class Overlay(object):
mtype = ' [' + pad(_type, 10) + ']'
if not width:
- width = terminal_width()
+ width = terminal_width()-1
srclen = width - 43
source = ', '.join(self.source_uris())
if len(source) > srclen: