Sublime Forum

How to keep the view.show_popup() open when the selection changes?

#1

I have this code which shows the pop at the end of the word (specific location) each time the selection changes:

    def on_selection_modified(self, view) :
        if view.is_popup_visible():
            # don't let the popup blink
            return
        ...
        region = view.sel()[0]
        word_region = view.word(region)
        location = word_region.end()
        view.show_popup("html", flags=0, location=location, max_width=700)

But each time I change the selection, it blinks:

How can I keep the popup steady? i.e., no blinking.

0 Likes

#2

Looks like the solution can be fount on:

0 Likes