1
1
mirror of https://github.com/walles/moar.git synced 2024-11-27 01:05:23 +03:00

Fix a function name

This commit is contained in:
Johan Walles 2022-12-31 16:41:57 +01:00
parent 2245d3e07f
commit 4c5193bb44
2 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ func setStyleFromEnv(updateMe *twin.Style, envVarName string) {
*updateMe = termcapToStyle(envValue)
}
// SetManPageFormatFromEnv parses LESS_TERMCAP_xx environment variables and
// ConsumeLessTermcapEnvs parses LESS_TERMCAP_xx environment variables and
// adapts the moar output accordingly.
func SetManPageFormatFromEnv() {
func ConsumeLessTermcapEnvs() {
// Requested here: https://github.com/walles/moar/issues/14
setStyleFromEnv(&manPageBold, "LESS_TERMCAP_md")

View File

@ -400,7 +400,7 @@ func (p *Pager) onRune(char rune) {
// StartPaging brings up the pager on screen
func (p *Pager) StartPaging(screen twin.Screen) {
unprintableStyle = p.UnprintableStyle
SetManPageFormatFromEnv()
ConsumeLessTermcapEnvs()
p.screen = screen