mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-13 07:37:17 +03:00
parent
ae46a91e0f
commit
3f0faf761e
2
host.go
2
host.go
@ -231,7 +231,7 @@ func (h *Host) AutoCompleteFunction(u *message.User) func(line string, pos int,
|
||||
posPartial := pos - len(partial)
|
||||
|
||||
var completed string
|
||||
if isFirst && strings.HasPrefix(partial, "/") {
|
||||
if isFirst && strings.HasPrefix(line, "/") {
|
||||
// Command
|
||||
completed = h.completeCommand(partial)
|
||||
if completed == "/reply" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user