Skip to content

Commit d09532a

Browse files
nerg4lmeowgorithm
authored andcommitted
chore: unify get border size function names
1 parent 4eea195 commit d09532a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

get.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,16 @@ func (s Style) GetBorderLeftBackground() TerminalColor {
290290
// GetBorderTopWidth returns the width of the top border. If borders contain
291291
// runes of varying widths, the widest rune is returned. If no border exists on
292292
// the top edge, 0 is returned.
293+
//
294+
// Deprecated: This function simply calls Style.GetBorderTopSize.
293295
func (s Style) GetBorderTopWidth() int {
296+
return s.GetBorderTopSize()
297+
}
298+
299+
// GetBorderTopSize returns the width of the top border. If borders contain
300+
// runes of varying widths, the widest rune is returned. If no border exists on
301+
// the top edge, 0 is returned.
302+
func (s Style) GetBorderTopSize() int {
294303
if !s.getAsBool(borderTopKey, false) {
295304
return 0
296305
}

0 commit comments

Comments
 (0)