mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
#N/A Fix history rule with blank history
This commit is contained in:
parent
4f5659caad
commit
cd084c8ba6
@ -11,7 +11,8 @@ def _not_corrected(history, tf_alias):
|
||||
if previous is not None and line != tf_alias:
|
||||
yield previous
|
||||
previous = line
|
||||
yield history[-1]
|
||||
if history:
|
||||
yield history[-1]
|
||||
|
||||
|
||||
@memoize
|
||||
|
Loading…
x
Reference in New Issue
Block a user