summaryrefslogtreecommitdiff
path: root/commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands.go')
-rw-r--r--commands.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.go b/commands.go
index 701fe4b..f81974f 100644
--- a/commands.go
+++ b/commands.go
@@ -554,7 +554,7 @@ func parseCommand(s string) (command, args string, isCommand bool) {
if s[0] != '/' {
return "", s, false
}
- if s[1] == '/' {
+ if len(s) > 1 && s[1] == '/' {
// Input starts with two slashes.
return "", s[1:], false
}