From c538e940f5a92fb0ff12e7c3d39795138f9581a9 Mon Sep 17 00:00:00 2001 From: Evgeny Pogrebnyak Date: Wed, 28 Feb 2024 04:05:22 +0000 Subject: [PATCH] fix: reset colors for #12 --- justpath/show.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justpath/show.py b/justpath/show.py index 35d5f12..9790add 100644 --- a/justpath/show.py +++ b/justpath/show.py @@ -9,7 +9,7 @@ from pathlib import Path from typing import Annotated, Type -from colorama import Fore +from colorama import Fore, Style from typer import Option, Typer @@ -139,6 +139,8 @@ def show( print(modifier + str(row.path)) else: print_row(row, color, path_var.max_digits) + if color: + print(Style.RESET_ALL) def modify_rows(