Skip to content

Commit a9dce09

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 99e2408 commit a9dce09

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

babi/file.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def draw(
10371037

10381038
# show line numbers
10391039
if show_line_numbers:
1040-
l_no = str(l_y+1).rjust(dim.x)
1040+
l_no = str(l_y + 1).rjust(dim.x)
10411041
stdscr.insstr(draw_y, 0, l_no, curses.A_REVERSE)
10421042
draw_x = dim.x
10431043
else:
@@ -1078,8 +1078,10 @@ def draw(
10781078
else:
10791079
h_e_x = r_end - l_x
10801080

1081-
stdscr.chgat(draw_y, draw_x + h_s_x,
1082-
h_e_x - h_s_x, region.attr)
1081+
stdscr.chgat(
1082+
draw_y, draw_x + h_s_x,
1083+
h_e_x - h_s_x, region.attr,
1084+
)
10831085

10841086
for i in range(to_display, dim.height):
10851087
stdscr.move(i + dim.y, 0)

babi/screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def _layout_from_current_screen(self) -> Layout:
338338
x=file_x,
339339
y=file_y,
340340
width=curses.COLS - file_x,
341-
height=file_height
341+
height=file_height,
342342
),
343343
status=Dim(x=0, y=status_y, width=curses.COLS, height=1),
344344
lint_errors=Dim(

0 commit comments

Comments
 (0)