smart-comment icon indicating copy to clipboard operation
smart-comment copied to clipboard

Marks extra comments for deletion

Open gopar opened this issue 7 years ago • 1 comments
trafficstars

When doing C-u M-;, it marks extra comments for deletion. On the snippet of code, if I mark the entire the first function for deletion (using C-u M-;) it will mark the comment on the 2nd function for deletion as well. This only seems to happen when I mark a region and call C-u M-;

def get_app_discovery(store, total_partitions=1000, partition=1, page_token=None):
    # type: (AppStoreEnum, int, int, Optional[Text]) -> List[App]
    results = []
    while partition <= total_partitions:
        apps = get_app_discovery_for_partition(store, total_partitions, partition, page_token)
        partition += 1

        results.extend(apps)

    return results

def get_app_discovery_for_partition(store, total_partitions=1000, partition=1, page_token=None):
    # type: (AppStoreEnum, int, int, Optional[Text]) -> List[App]
    pass

gopar avatar Jul 13 '18 17:07 gopar

This bug still exist. I can add from my side that looks like it's happens only when region contain an empty lines.

exchg avatar Jan 27 '21 11:01 exchg