1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-07 05:31:18 +00:00

Revert "sry edit is false"

This reverts commit 46439e0ee421f05af1a93b93f9a0c118119bf865.
This commit is contained in:
spidermanir 2019-10-05 01:30:27 +03:30
parent 1683f45e94
commit 66c16038bb

View File

@ -30,8 +30,11 @@ def _get_operations():
@sudo_support
def get_new_command(command):
misspelled_command = regex.findall(command.output)[0]
return replace_command(command, misspelled_command, _get_operations())
if misspelled_command == 'uninstall':
return [command.script.replace('uninstall','remove')
else:
misspelled_command = regex.findall(command.output)[0]
return replace_command(command, misspelled_command, _get_operations())
enabled_by_default = dnf_available