How to create Region object Sublime Text?
On the API page https://www.sublimetext.com/docs/3/api_reference.html#sublime.Region I found, the Region object constructor is sublime.Region Class: Region(a, b)
, however I could not create it when doing this on the Sublime Text console:
view.sel().clear(); view.sel().add(Region(1,1))
The sublime.Selection Class
says it requires a Region
object so I am trying to pass one, but I cannot create one. Anyways when passing just one Integer
the command above succeeds.
view.sel().clear(); view.sel().add(1)
But the documentation says nothing about it accepting integers, it talks about that Region
's I cannot to create.