Skip to content

Commit

Permalink
company-fill-propertize: Limit the deprecation marking to the complet…
Browse files Browse the repository at this point in the history
…ion value

#1240
  • Loading branch information
dgutov committed Oct 23, 2021
1 parent d59c9cb commit ff49fc2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion company.el
Expand Up @@ -3063,7 +3063,11 @@ If SHOW-VERSION is non-nil, show the version in the echo area."
(add-face-text-property 0 width 'company-tooltip-selection t line))

(when (company-call-backend 'deprecated value)
(add-face-text-property 0 width 'company-tooltip-deprecated t line))
(add-face-text-property margin
(min
(+ margin (length value))
(- width (length right)))
'company-tooltip-deprecated t line))

(add-face-text-property 0 width 'company-tooltip t line)
line))
Expand Down

0 comments on commit ff49fc2

Please sign in to comment.