mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-12-22 13:10:43 -06:00
fix: use total num of projects as max
This commit is contained in:
parent
b6065f0ef5
commit
cca580fd12
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ proc addProjectCount(b: var Buffer) =
|
||||||
let
|
let
|
||||||
maxNumProjects = state.buffer.height - state.buffer.inputPad
|
maxNumProjects = state.buffer.height - state.buffer.inputPad
|
||||||
numProjects = state.projects.len
|
numProjects = state.projects.len
|
||||||
b.addLine $(fmt"[[{state.projectIdx+1}-{state.projectIdx + maxNumProjects}/{numProjects}]".bb("faint"))
|
b.addLine $(fmt"[[{state.projectIdx+1}-{state.projectIdx + min(maxNumProjects, numProjects)}/{numProjects}]".bb("faint"))
|
||||||
|
|
||||||
proc addProjects(b: var Buffer) =
|
proc addProjects(b: var Buffer) =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue