mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-21 20:38:54 +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:
|
if previous is not None and line != tf_alias:
|
||||||
yield previous
|
yield previous
|
||||||
previous = line
|
previous = line
|
||||||
yield history[-1]
|
if history:
|
||||||
|
yield history[-1]
|
||||||
|
|
||||||
|
|
||||||
@memoize
|
@memoize
|
||||||
|
Loading…
x
Reference in New Issue
Block a user