File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,16 @@ func (s Style) GetBorderLeftBackground() TerminalColor {
290
290
// GetBorderTopWidth returns the width of the top border. If borders contain
291
291
// runes of varying widths, the widest rune is returned. If no border exists on
292
292
// the top edge, 0 is returned.
293
+ //
294
+ // Deprecated: This function simply calls Style.GetBorderTopSize.
293
295
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 {
294
303
if ! s .getAsBool (borderTopKey , false ) {
295
304
return 0
296
305
}
You can’t perform that action at this time.
0 commit comments