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:
parent
2245d3e07f
commit
4c5193bb44
@ -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")
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user