mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-15 00:20:37 +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)
|
posPartial := pos - len(partial)
|
||||||
|
|
||||||
var completed string
|
var completed string
|
||||||
if isFirst && strings.HasPrefix(partial, "/") {
|
if isFirst && strings.HasPrefix(line, "/") {
|
||||||
// Command
|
// Command
|
||||||
completed = h.completeCommand(partial)
|
completed = h.completeCommand(partial)
|
||||||
if completed == "/reply" {
|
if completed == "/reply" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user