mirror of
https://github.com/daylinmorgan/tsm.git
synced 2024-11-16 09:18:32 -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
|
||||
maxNumProjects = state.buffer.height - state.buffer.inputPad
|
||||
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) =
|
||||
let
|
||||
|
|
Loading…
Reference in a new issue