From 94439c60629cef6aac18f7242fc8303b03ca42ed Mon Sep 17 00:00:00 2001 From: Nikolaj Schumacher Date: Thu, 23 Apr 2009 16:19:19 +0200 Subject: [PATCH] Don't use raw candidates list in member contexts. --- company-semantic.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/company-semantic.el b/company-semantic.el index fbdb1ee14..25b73f506 100644 --- a/company-semantic.el +++ b/company-semantic.el @@ -92,8 +92,10 @@ Symbols are chained by \".\" or \"->\"." (semantic-active-p) (not (company-in-string-or-comment)) (or (company-semantic--grab) 'stop))) - ('candidates (or (company-semantic-completions arg) - (company-semantic-completions-raw arg))) + ('candidates (if (and (equal arg "") + (not (looking-back "->\\|\\."))) + (company-semantic-completions-raw arg) + (company-semantic-completions arg))) ('meta (funcall company-semantic-metadata-function (semantic-analyze-find-tag arg))) ('doc-buffer (company-semantic-doc-buffer (semantic-analyze-find-tag arg))) -- 2.39.2