Helium icon indicating copy to clipboard operation
Helium copied to clipboard

Duplicate clear button

Open pykong opened this issue 6 years ago • 1 comments

Executing a cell results (inline) will render two clear buttons ("x") of which only the lower one is functional. See screenshot:

image

pykong avatar Feb 08 '20 22:02 pykong

This problem is caused by the single if statement in line 505: grafik

I'm not sure if this behavior is intended. Afaik, if "image/png" is present, "text/plain" doesn't contain anything.

A possible fix could be sorting and replacing if with elif:

def _write_mime_data_to_view(
    self, mime_data: dict, region: sublime.Region, view: sublime.View
) -> None:
    if "image/png" in mime_data:
        pass
    elif "text/plain" in mime_data:
        pass
    elif "text/html" in mime_data:
        pas
           

cgahr avatar Mar 23 '21 10:03 cgahr