emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 05/52: Respect tooltip align annotations in company-yasnippet.


From: Dmitry Gutov
Subject: [elpa] 05/52: Respect tooltip align annotations in company-yasnippet.
Date: Tue, 01 Jul 2014 11:53:05 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 65322e319f9ac90fed9d7f69a1a691390011afc7
Author: Malyshev Artem <address@hidden>
Date:   Tue Apr 29 13:27:00 2014 +0400

    Respect tooltip align annotations in company-yasnippet.
    
    Don't display " -> " separator if annotations align to the right tooltip 
corner.
---
 company-yasnippet.el |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/company-yasnippet.el b/company-yasnippet.el
index 4730b21..741a160 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -82,7 +82,10 @@ shadow back-ends that come after it.  Recommended usages:
      ;; How many trigger keys start with non-symbol characters anyway?
      (and yas-minor-mode
           (company-grab-symbol)))
-    (annotation (concat " -> " (get-text-property 0 'yas-annotation arg)))
+    (annotation
+     (concat
+      (unless company-tooltip-align-annotations " -> ")
+      (get-text-property 0 'yas-annotation arg)))
     (candidates (company-yasnippet--candidates arg))
     (post-completion
      (let ((template (get-text-property 0 'yas-template arg)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]