Esempio n. 1
0
 def add(self, x):
     if isinstance(x, Region):
         sublime_api.view_selection_add_region(self.view_id, x.a, x.b, x.xpos)
     else:
         sublime_api.view_selection_add_point(self.view_id, x)
Esempio n. 2
0
 def add(self, x):
     if isinstance(x, Region):
         sublime_api.view_selection_add_region(self.view_id, x.a, x.b,
                                               x.xpos)
     else:
         sublime_api.view_selection_add_point(self.view_id, x)