From 4c5193bb44d6f1458d7693c907535d5466e64761 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Sat, 31 Dec 2022 16:41:57 +0100 Subject: [PATCH] Fix a function name --- m/ansiTokenizer.go | 4 ++-- m/pager.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/m/ansiTokenizer.go b/m/ansiTokenizer.go index 7abc546..946f6fb 100644 --- a/m/ansiTokenizer.go +++ b/m/ansiTokenizer.go @@ -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") diff --git a/m/pager.go b/m/pager.go index 6e91bd1..5ccbe36 100644 --- a/m/pager.go +++ b/m/pager.go @@ -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