Properly updating the new message marker on buffer switches