In Sublime Text 3, this code returns None, wherever the selection set.
regi = sublime.Region(0, 10)
print("regi", regi, type(regi))
viewSel = view.sel()
print("viewSel", viewSel)
print("contains", viewSel.contains(regi))
I want to detect “the region is contains by selection or not”.
How can I do it?