Fix return values of switch-to-prev/next-buffer.