[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 2ca3e29abf: company-preview-show-at-point: Supp
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 2ca3e29abf: company-preview-show-at-point: Support completions containing newlines |
Date: |
Wed, 8 Feb 2023 20:57:26 -0500 (EST) |
branch: externals/company
commit 2ca3e29abf87392714bc2b26e50e1c0f4b9f4e2c
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
company-preview-show-at-point: Support completions containing newlines
Fixes #1367
---
company.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/company.el b/company.el
index 11f8b06767..9e98f6a90f 100644
--- a/company.el
+++ b/company.el
@@ -3741,6 +3741,10 @@ Delay is determined by `company-tooltip-idle-delay'."
(company-strip-prefix completion)
completion))
+ (when (string-prefix-p "\n" completion)
+ (setq completion (concat (propertize " " 'face 'company-preview) "\n"
+ (substring completion 1))))
+
(and (equal pos (point))
(not (equal completion ""))
(add-text-properties 0 1 '(cursor 1) completion))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/company 2ca3e29abf: company-preview-show-at-point: Support completions containing newlines,
ELPA Syncer <=