Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Nov 9, 2024
1 parent 088eccc commit 1557b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/shell/powershell/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func ActionRawValues(currentWord string, meta common.Meta, values common.RawValu
}

tooltip := " "
if env.Tooltip() { // TODO only check once
tooltip = val.Description
if env.Tooltip() && val.Description != "" { // TODO only check once
tooltip = fmt.Sprintf("`e[%vm`e[%vm%v`e[21;22;23;24;25;29;39;49m", sgr(descriptionStyle+" bg-default"), sgr(descriptionStyle), sanitizer.Replace(val.TrimmedDescription()))
val.Description = ""
}

Expand Down

0 comments on commit 1557b5f

Please sign in to comment.