Move the palette expansion into the buffer.