take &bufhidden option into account