branch: elpa/helm
commit 52e1a7f952db47b7118773048a41fe05873114e3
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Try to find the default separator in CRM
This allows to use the right separator when inserting candidate
e.g. ":" instead of default ",", otherwise the default separator is
inserted and further completion fails because it matches the wrong
separator.
---
helm-mode.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/helm-mode.el b/helm-mode.el
index dbc583478e..7f4a83e848 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -2885,6 +2885,9 @@ Be sure to know what you are doing when modifying this.")
;; it matches or default to "," if no match.
(eq (length crm-separator) 1)
crm-separator)
+ (and (stringp crm-separator)
+ (or (get-text-property 0 'separator crm-separator)
+ (string-replace "[ \t]*" "" crm-separator)))
helm-crm-default-separator)))
;; Try to find a default separator. If `crm-separator' is a
;; regexp use the string the regexp is matching.