tumashu / company-posframe

121 stars 24 forks source link

Fix split-string nil error #26

Closed MeltWS closed 4 years ago

MeltWS commented 4 years ago

In the event of a backend giving candidates without docs we have to check if the doc exist before calling split-string

In company-posframe-quickhelp-show() the doc of current candidate is used in a split-string call. throwing an error in the case of nil doc:

image

proposed fix: Move the existing check before the split-string call.

tumashu commented 4 years ago

merged, thanks!