This would just need re-synching when the buffer gets resized/reset, below, but still worth it IMO.