Skip to content

Commit

Permalink
Fix interactive output of tasks' fetch_output.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Dec 19, 2022
1 parent 6cad05c commit 02dc374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion law/task/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def fetch_task_output(task, max_depth=0, mode=None, target_dir=".", include_exte
# get the line break setting
break_lines = cfg.get_expanded_boolean("task", "interactive_line_breaks")
out_width = cfg.get_expanded_int("task", "interactive_line_width")
print_width = (out_width if out_width > 0 else get_terminal_width()) if break_lines else None
print_width = [(out_width if out_width > 0 else get_terminal_width()) if break_lines else None]
_print = lambda line, offset: _print_wrapped(line, print_width[0], offset)

# custom query_choice function that updates the terminal_width
Expand Down

0 comments on commit 02dc374

Please sign in to comment.