From 2ee9228d3079ac9e58f8774ded880d357baeb2c0 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Fri, 28 Mar 2008 18:51:37 +0100 Subject: [PATCH] Don't crash on empty control command --- gsh/control_commands_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsh/control_commands_helpers.py b/gsh/control_commands_helpers.py index 3813563..235117e 100644 --- a/gsh/control_commands_helpers.py +++ b/gsh/control_commands_helpers.py @@ -84,6 +84,8 @@ def complete_control_command(line, text): return matches def handle_control_command(line): + if not line: + return cmd_name = line.split()[0] try: cmd_func = get_control_command(cmd_name) -- 2.11.4.GIT