From f6c3800dfefd8f12c688bc36c4cbaf732e7490b7 Mon Sep 17 00:00:00 2001 From: DashBing Date: Sun, 20 Aug 2023 17:12:40 +0800 Subject: [PATCH] fix utils.py --- thefuck/utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/thefuck/utils.py b/thefuck/utils.py index 466e4ba..2670eee 100644 --- a/thefuck/utils.py +++ b/thefuck/utils.py @@ -327,9 +327,11 @@ def get_valid_history_without_current(command): executables = set(get_all_executables())\ .union(shell.get_builtin_commands()) - return [line for line in _not_corrected(history, tf_alias) - if not line.startswith(tf_alias) and not line == command.script - and line.split(' ')[0] in executables] + return [ + line for line in _not_corrected(history, tf_alias) + if not line.startswith(tf_alias) and not line == command.script + and line.split(' ')[0] in executables + ] def format_raw_script(raw_script):