[erc] Make buffer width follow window config