We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7862e31 commit 9a914aaCopy full SHA for 9a914aa
pkg/cmd/protip/protip.go
@@ -104,7 +104,7 @@ loop:
104
"To merge a PR, review it until",
105
"it is approved.",
106
}
107
- drawProtip(s, opts.Sprite.Width+2, style, tipLines)
+ drawProtip(s, opts.Sprite.Width, 1, style, tipLines)
108
s.Show()
109
110
@@ -113,7 +113,7 @@ loop:
113
return nil
114
115
116
-func drawProtip(s tcell.Screen, startX int, st tcell.Style, tipLines []string) {
+func drawProtip(s tcell.Screen, startX, startY int, st tcell.Style, tipLines []string) {
117
// Should look like this:
118
/*
119
@@ -147,9 +147,9 @@ func drawProtip(s tcell.Screen, startX int, st tcell.Style, tipLines []string) {
147
topBorder += "-*"
148
bottomBorder += "_*"
149
150
- emitStr(s, startX, 0, st, topBorder)
+ emitStr(s, startX, startY, st, topBorder)
151
152
- y := 1
+ y := startY + 1
153
154
for iy, line := range tipLines {
155
emitStr(s, startX, y+iy, st, pad(line))
0 commit comments