Skip to content

Commit

Permalink
Merge pull request #666 from noborus/fix-receiver-name
Browse files Browse the repository at this point in the history
Fix inconsistent receiver variable names
  • Loading branch information
noborus authored Dec 11, 2024
2 parents 1d54349 + 29ee458 commit 09ed8fd
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 09ed8fd

Please sign in to comment.