Skip to content

Commit

Permalink
Fix inconsistent receiver variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Dec 10, 2024
1 parent 1d54349 commit 29ee458
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions oviewer/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,18 +216,18 @@ func (st *parseState) parseChar(mainc rune, combc []rune) {
}

// overstrike set style for overstrike.
func (es *parseState) overstrike(m content, style tcell.Style) tcell.Style {
if !es.bsFlag {
func (st *parseState) overstrike(m content, style tcell.Style) tcell.Style {
if !st.bsFlag {
return style
}

if es.bsContent.mainc == m.mainc {
if st.bsContent.mainc == m.mainc {
style = OverStrikeStyle
} else if es.bsContent.mainc == '_' {
} else if st.bsContent.mainc == '_' {
style = OverLineStyle
}
es.bsFlag = false
es.bsContent = DefaultContent
st.bsFlag = false
st.bsContent = DefaultContent
return style
}

Expand Down

0 comments on commit 29ee458

Please sign in to comment.