refact(man): do not match if there's no argument to man

If there's no argument to man, a call to thefuck should just give no
fuck.

Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
This commit is contained in:
Pablo Santiago Blum de Aguiar
2015-05-20 23:53:08 -03:00
parent d088dac0f4
commit 6cf430cc23
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
def match(command, settings):
return command.script.startswith('man')
return command.script.strip().startswith('man ')
def get_new_command(command, settings):