mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Refactor: More f-string for kittens
This commit is contained in:
@@ -45,7 +45,7 @@ def render_path_in_width(path: str, width: int) -> str:
|
||||
if wcswidth(path) <= width:
|
||||
return path
|
||||
x = truncate_point_for_length(path, width - 1)
|
||||
return path[:x] + '…'
|
||||
return f'{path[:x]}…'
|
||||
|
||||
|
||||
def render_seconds(val: float) -> str:
|
||||
|
||||
Reference in New Issue
Block a user