Skip to content

Commit 7dbc58e

Browse files
Code formatting.
1 parent 58e14f4 commit 7dbc58e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/prompt_toolkit/widgets/base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,12 @@ def get_style() -> str:
436436
)
437437

438438
def _get_text_fragments(self) -> StyleAndTextTuples:
439-
width = self.width - (
440-
get_cwidth(self.left_symbol) + get_cwidth(self.right_symbol)
441-
) + (
442-
len(self.text) - get_cwidth(self.text)
439+
width = (
440+
self.width
441+
- (get_cwidth(self.left_symbol) + get_cwidth(self.right_symbol))
442+
+ (len(self.text) - get_cwidth(self.text))
443443
)
444-
text = (f"{{:^{max(0,width)}}}").format(self.text)
444+
text = (f"{{:^{max(0, width)}}}").format(self.text)
445445

446446
def handler(mouse_event: MouseEvent) -> None:
447447
if (

0 commit comments

Comments
 (0)