mirror of
https://github.com/charmbracelet/glow
synced 2024-12-13 21:52:37 +00:00
Only show news in help if we're online
This commit is contained in:
parent
2eb5f46b01
commit
1922bfaa68
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ func (m stashModel) helpView() (string, int) {
|
|||
}
|
||||
|
||||
// If there's no filtering happening
|
||||
if !m.isFiltering() {
|
||||
if !m.isFiltering() && m.online() {
|
||||
if m.docState == stashShowNewsDocs {
|
||||
sectionHelp = []string{"n", "home"}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue