mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
util: Use smaller extra margin for vertical splits
This commit is contained in:
parent
7c9bcaf129
commit
e2ab941492
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ def show_in_split(lines, size=None, position="belowright", vertical=False,
|
||||||
if vertical:
|
if vertical:
|
||||||
# Maximum number of columns used + small offset
|
# Maximum number of columns used + small offset
|
||||||
# Strip the color codes, since they do not show up in the split
|
# Strip the color codes, since they do not show up in the split
|
||||||
size = max([len(strip_ansi_escape_sequence(l)) for l in lines]) + 5
|
size = max([len(strip_ansi_escape_sequence(l)) for l in lines]) + 1
|
||||||
else:
|
else:
|
||||||
# Number of lines
|
# Number of lines
|
||||||
size = len(lines)
|
size = len(lines)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue