Adapt the tmux rule to #324

This commit is contained in:
mcarton
2015-07-31 21:48:14 +02:00
parent 8374be0872
commit 88732a608e
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
from thefuck.utils import get_closest, replace_argument
from thefuck.utils import get_closest, replace_command
import re
@@ -15,6 +15,4 @@ def get_new_command(command, settings):
old_cmd = cmd.group(1)
suggestions = [cmd.strip() for cmd in cmd.group(2).split(',')]
new_cmd = get_closest(old_cmd, suggestions)
return replace_argument(command.script, old_cmd, new_cmd)
return replace_command(command, old_cmd, suggestions)