on main help sign in
fix(ui): use correct default read limit in permissions dialog

renderViewContent checked params.Limit != 2000 to skip showing the line count at default, but the actual default is tools.DefaultReadLimit (200). Replaced stale hardcoded 2000 with tools.DefaultReadLimit so the count is correctly hidden at the actual default value.

commit6f4906cc23d9c15dd4afea9e2994ff38b2bc0352 authoriko <mail@iko.soy> dateThu 9 Jul 2026, 03:02 (3 months ago) parente7a7bf3
1 file changed+1−1
internal/ui/dialog/permissions.go+1−1
internal/ui/dialog/permissions.go+1−1
@@ -707,7 +707,7 @@ func (p *Permissions) renderViewContent(width int) string {
707707 if params.Offset > 0 {
708708 content += fmt.Sprintf("\nStarting from line: %d", params.Offset+1)
709709 }
710− if params.Limit > 0 && params.Limit != 2000 {
710+ if params.Limit > 0 && params.Limit != tools.DefaultReadLimit {
711711 content += fmt.Sprintf("\nLines to read: %d", params.Limit)
712712 }
713713