diff --git a/complete.go b/complete.go index 75b38af..349fc3d 100644 --- a/complete.go +++ b/complete.go @@ -219,7 +219,7 @@ func (o *opCompleter) CompleteRefresh() { } buf.WriteString(string(same)) buf.WriteString(string(c)) - buf.Write(bytes.Repeat([]byte(" "), colWidth-len(c))) + buf.Write(bytes.Repeat([]byte(" "), colWidth-len(c)-len(same))) if inSelect { buf.WriteString("\033[0m")