mirror of
https://github.com/charmbracelet/glow
synced 2024-09-20 06:22:02 +00:00
aba133b7e6
Passing 0 to `paginator.SetTotalPages()` is ineffective as it won't alter the model (paginator needs at least 1 page) and therefore doesn't update the page count. Filtering can lead to 0 items in the stash view - in this case we still want to have a page available in the paginator - so we also have pass 1 to `setTotalPages()`. |
||
---|---|---|
.. | ||
consts_unix.go | ||
consts_windows.go | ||
ignore_darwin.go | ||
ignore_general.go | ||
markdown.go | ||
pager.go | ||
stash.go | ||
stashitem.go | ||
ui.go |