A scenario where this lead to unintended behaviour previously was the following: If cmp.enabled was configured such that it disabled cmp when in a comment, and the user typed '--' in a lua file (this starts a comment), the cmp window would not close if further text is typed on that line (although cmp should be disabled).