mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-27 02:20:39 +02:00
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 | ||