Closed glvr182 closed 5 years ago
Nice PR, I’ll review it later today
Updated to latest master
Interesting point, do you know of a more efficient way we could handle this?
v.writeMutex.Lock()
// Fill with empty cells, if writing outside current view buffer
v.makeWriteable(v.wx, v.wy)
v.writeRunes(bytes.Runes(p))
v.writeMutex.Unlock()
It's not really shorter but you don't need the defer
, and it's easier to read because you can read from top to bottom
Fair enough, I shall refactor it
I have updated it according to your suggestions @mjarkk
LGTM :)
Some safety improvements
Once the reviews are in I'll merge it