Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# commandline below:
# https://github.com/golangci/golangci-lint/releases/latest
- name: Install golangci-lint
run: curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.11.3
run: curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.13.1

# Required by test.sh
- name: Install mandoc
Expand Down
4 changes: 0 additions & 4 deletions internal/detectManPage.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ const manPageDetectionLines = 14

func (p *Pager) haveLoadedManPage() bool {
reader := p.Reader()
if reader == nil {
return false
}

for _, line := range reader.GetLines(linemetadata.Index{}, manPageDetectionLines).Lines {
if line.Line.HasManPageFormatting() {
return true
Expand Down
1 change: 1 addition & 0 deletions internal/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ func (p *Pager) moveRight(delta int) {
}
}

// Reader returns the currently active reader, never nil.
func (p *Pager) Reader() reader.Reader {
if p.isShowingHelp {
return _HelpReader
Expand Down