less code for the same-buffers command