Skip to content

Greater than 99999 line file doesn't resize line number width #2583

Closed
@dalanmiller

Description

@dalanmiller

Summary

When viewing a file that has more than 99,999 lines, anything more than the left five digits is squelched.

E.g. my /etc/hosts file.
Screen Shot 2022-05-27 at 11 19 55 pm

This gets quite confusing when viewing lines much higher:

Screen Shot 2022-05-27 at 9 35 48 pm

Reproduction Steps

Download this file:

100001.txt

:100001 and observe the line numbers being truncated.

Helix log

Probably not necessary? I didn't see any issues related.

Platform

macOS

Terminal Emulator

iterm2

Helix Version

helix 22.03 (d4e45fd)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-helix-termArea: Helix term improvementsC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions