check return value from match on buffname

otherwise we split regardless of the buffer