mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[GH-ISSUE #452] line_number gutter stops displaying line numbers beyond line 99 #889
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#889
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PersistenceOS on GitHub (Dec 28, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/452
Bug Report: line_number Component Stops Rendering at Line 99
Issue Summary
The
line_numbercomponent from@opentui/corev0.1.63 stops rendering line numbers in the gutter at line 99, even when the wrappedtextareacontains 100+ lines. Line numbers beyond 99 are not displayed in the gutter, though the textarea content scrolls correctly.Environment
@opentui/core0.1.63@opentui/solidv0.1.63Steps to Reproduce
textareacomponent withline_numbercomponentshowLineNumbers={true}Expected Behavior
Line numbers should display for ALL lines in the file (1, 2, 3, ..., 99, 100, 101, 102, ...), regardless of file size.
Actual Behavior
Line numbers display correctly for lines 1-99, but stop rendering at line 99. Lines 100+ do not show line numbers in the gutter, even though:
Code Example
Result: Gutter shows line numbers 1-99, but stops at 99. Lines 100-274 have no line numbers displayed.
Additional Context
minWidthprop is set correctly (5 for 3-digit numbers)lineColorsandlineSignsprops work correctly for lines 1-99Workaround Attempted
We attempted to create a custom line number gutter, but it doesn't sync scroll position with the textarea, making it unusable. The
line_numbercomponent's automatic scroll synchronization is essential for proper editor functionality.Impact
This bug affects any editor implementation using
line_numberwith files containing 100+ lines, which is common in real-world codebases.Related
line_numberfrom@opentui/core@PersistenceOS commented on GitHub (Jan 20, 2026):
Hello, Was this ever reviewed and resolved? if so what release?
Thank you,
Leo