Skip to content

Commit

Permalink
Convert to snake case (5/n) (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored Feb 20, 2021
1 parent 6cb43b1 commit f850887
Show file tree
Hide file tree
Showing 2 changed files with 247 additions and 247 deletions.
8 changes: 4 additions & 4 deletions src/pathpicker/line_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def print_out(self):

def output(self, printer):
assert self.controller is not None
(min_x, min_y, max_x, max_y) = self.controller.getChromeBoundaries()
(min_x, min_y, max_x, max_y) = self.controller.get_chrome_boundaries()
max_len = min(max_x - min_x, len(str(self)))
y_pos = min_y + self.index + self.controller.getScrollOffset()
y_pos = min_y + self.index + self.controller.get_scroll_offset()

if y_pos < min_y or y_pos >= max_y:
# wont be displayed!
Expand Down Expand Up @@ -263,8 +263,8 @@ def print_up_to(self, text, printer, y_pos, x_pos, max_len):

def output(self, printer):
assert self.controller is not None
(min_x, min_y, max_x, max_y) = self.controller.getChromeBoundaries()
y_pos = min_y + self.index + self.controller.getScrollOffset()
(min_x, min_y, max_x, max_y) = self.controller.get_chrome_boundaries()
y_pos = min_y + self.index + self.controller.get_scroll_offset()

if y_pos < min_y or y_pos >= max_y:
# wont be displayed!
Expand Down
Loading

0 comments on commit f850887

Please sign in to comment.