Beispiel #1
0
 def indentation_level(self, pt):
     return sublime_api.view_indentation_level(self.view_id, pt)
 def guess_indentation_level(self, region):
     view = self.view
     (x, y) = view.rowcol(max(0, region.begin() - 1))
     prev_line_region = sublime.Region(view.text_point(x, y)).begin()
     return sublime_api.view_indentation_level(view.id(), prev_line_region)
Beispiel #3
0
 def indentation_level(self, pt):
     return sublime_api.view_indentation_level(self.view_id, pt)
Beispiel #4
0
 def guess_indentation_level(self, region):
     view = self.view
     (x, y) = view.rowcol(max(0, region.begin() - 1))
     prev_line_region = sublime.Region(view.text_point(x, y)).begin()
     return sublime_api.view_indentation_level(view.id(), prev_line_region)