diff --git a/ghid/keyboard.go b/ghid/keyboard.go index a06a8e2..3852672 100644 --- a/ghid/keyboard.go +++ b/ghid/keyboard.go @@ -124,7 +124,7 @@ func write(p []byte) (n int, err error) { case cur.Comment: var n int - n = bytes.Index(p[index+s:], []byte("\n")) + n = bytes.Index(p[index+s:], []byte("\n")) + 1 if n < 0 { n = 0 }