Skip to content
Myr

fix(typo): initial variable during input parsing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This was probably a typo since the `w` gets set again during `detectOneMsg` it wouldn't make sense to initially set it to `07` and it makes the code confusing.

authored by Ayman Bagabas · committed by Ayman Bagabas · parent 8df2989 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Fixes: a154847611cc (feat: extended Coordinates mouse reporting & additional buttons support (#594))

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:key.go+1 added-1 removed
579 unmodified lines
580 // the left over data in the next iteration.581 canHaveMoreData := numBytes == len(buf)582583 var i, w int584 for i, w = 0, 07; i < len(b); i += w {584 for i, w = 0, 0; i < len(b); i += w {585 var msg Msg586 w, msg = detectOneMsg(b[i:], canHaveMoreData)587 if w == 0 {588 // Expecting more bytes beyond the current buffer. Try waiting
120 unmodified lines