Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider assuming that line numbers are at least two digits #753

Open
Wilfred opened this issue Aug 16, 2024 · 1 comment
Open

Consider assuming that line numbers are at least two digits #753

Wilfred opened this issue Aug 16, 2024 · 1 comment

Comments

@Wilfred
Copy link
Owner

Wilfred commented Aug 16, 2024

Since the vast majority of files have at least 10 lines, it might improve alignment.

foo.py --- 1/2 --- Python
1 1
2   new_import()

foo.py --- 2/2 --- Python
11 12
12 13 other_change()
@Wilfred
Copy link
Owner Author

Wilfred commented Aug 16, 2024

A better heuristic might be looking at the line number of the last change in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant