mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-05 18:03:23 +03:00
parent
9979265622
commit
3e54932f7b
2
host.go
2
host.go
@ -199,7 +199,7 @@ func (h *Host) AutoCompleteFunction(u *message.User) func(line string, pos int,
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasSuffix(line[:pos], " ") {
|
if line == "" || strings.HasSuffix(line[:pos], " ") {
|
||||||
// Don't autocomplete spaces.
|
// Don't autocomplete spaces.
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user