From 56f636f3d8efbabb0942dd751f567484c67f3fbe Mon Sep 17 00:00:00 2001 From: mcarton Date: Fri, 8 May 2015 11:41:26 +0200 Subject: [PATCH] Remove unnecessary space in the DRY rule --- thefuck/rules/dry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/dry.py b/thefuck/rules/dry.py index 86759b3..f0954ea 100644 --- a/thefuck/rules/dry.py +++ b/thefuck/rules/dry.py @@ -5,7 +5,7 @@ def match(command, settings): def get_new_command(command, settings): - return command.script[command.script.find(' '):] + return command.script[command.script.find(' ')+1:] # it should be rare enough to actually have to type twice the same word, so # this rule can have a higher priority to come before things like "cd cd foo"