Skip to content

Commit

Permalink
Guard against empty strings while emojifying company tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalansari committed Aug 12, 2020
1 parent 3b05d51 commit d886069
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emojify.el
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,8 @@ displayed."
(overlay-get ov 'after-string)))
(emojified-display (when disp
(emojify-string disp '(unicode))))
(emojified-p (when emojified-display
(emojified-p (when (and (stringp emojified-display)
(not (zerop (length emojified-display))))
(text-property-any 0 (1- (length emojified-display))
'emojified t
emojified-display))))
Expand Down

0 comments on commit d886069

Please sign in to comment.