s:SwitchToBuffer(): get the right bufname