Skip to content

Commit

Permalink
fix: nudge border
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 12, 2024
1 parent 54d6e1b commit 9b4366e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ func main() {
}
buf := &bytes.Buffer{}

fmt.Println(styles.Names())

s, ok := styles.Registry[strings.ToLower(config.Theme)]
if s == nil || !ok {
s = charmStyle
Expand Down Expand Up @@ -117,7 +115,7 @@ func main() {
if config.Border {
addOutline(rect)

if config.Margin[left] <= 0 && config.Margin[top] <= 0 && !config.Shadow {
if config.Margin[left] <= 0 && config.Margin[top] <= 0 {
move(rect, 0.5, 0.5)
}

Expand Down

0 comments on commit 9b4366e

Please sign in to comment.