Skip to content

Commit

Permalink
chore: unify get border size function names
Browse files Browse the repository at this point in the history
  • Loading branch information
nerg4l authored and meowgorithm committed Mar 8, 2023
1 parent 4eea195 commit d09532a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions get.go
Expand Up @@ -290,7 +290,16 @@ func (s Style) GetBorderLeftBackground() TerminalColor {
// GetBorderTopWidth returns the width of the top border. If borders contain
// runes of varying widths, the widest rune is returned. If no border exists on
// the top edge, 0 is returned.
//
// Deprecated: This function simply calls Style.GetBorderTopSize.
func (s Style) GetBorderTopWidth() int {
return s.GetBorderTopSize()
}

// GetBorderTopSize returns the width of the top border. If borders contain
// runes of varying widths, the widest rune is returned. If no border exists on
// the top edge, 0 is returned.
func (s Style) GetBorderTopSize() int {
if !s.getAsBool(borderTopKey, false) {
return 0
}
Expand Down

0 comments on commit d09532a

Please sign in to comment.