def _filter_0distance(segment, issues):
    """
    filter issues to drop 0-distance edits
    :param issues: issues to filter
    :return: filter issues
    """
    filtered_issues = []
    for issue in issues:
        if issue['suggestions']:
            suggestions = []
            for suggestion in issue['suggestions']:
                if segment[issue['from']:issue['until']] == suggestion:
                    continue
                suggestions.append(suggestion)
            if suggestions:
                issue['suggestions'] = suggestions
                filtered_issues.append(issue)
        else:
            filtered_issues.append(issue)
    return filtered_issues
