1
0
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:
nvbn 2015-07-20 19:30:41 +03:00
parent 4f5659caad
commit cd084c8ba6

View File

@ -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