tumashu / company-posframe

121 stars 24 forks source link

Support company-tng-mode #54

Closed ctrl2wei closed 3 years ago

ctrl2wei commented 3 years ago

If enable company-tng-mode, company will not select any candidate at begin. and Emacs will show error:

Error running timer ‘company-posframe-quickhelp-show’: (wrong-type-argument numberp nil) 
tumashu commented 3 years ago

When I enable this mode, seem to no this problem, try emacs -Q to test.

ctrl2wei commented 3 years ago

错误出在 424 行的代码, https://github.com/tumashu/company-posframe/blob/a28f38213a2a30ce68fdb0b124cadc68ebbcb24f/company-posframe.el#L421-L427 company-tng-mode 默认开始没有选中任何 candidate,company-selection 值为 nil。

tumashu commented 3 years ago

please try again.

ctrl2wei commented 3 years ago

运行良好,感谢!