We need to substract 1 from the the terminal before plotting on windows

This commit is contained in:
Morten Enemark Lund 2016-03-20 23:51:36 +01:00
parent 7eda99feef
commit 3585aae813

View file

@ -324,6 +324,8 @@ def _tok_colors(cmap, cols):
def _colors(ns):
cols, _ = shutil.get_terminal_size()
if tools.ON_WINDOWS:
cols -= 1
cmap = tools.color_style()
akey = next(iter(cmap))
if isinstance(akey, str):