[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm c2f9bee9f4: Avoid space after completion in shell (#2
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm c2f9bee9f4: Avoid space after completion in shell (#2669) |
Date: |
Sat, 11 May 2024 04:00:19 -0400 (EDT) |
branch: elpa/helm
commit c2f9bee9f437401e9229a8debafe05f6f3ae9689
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Avoid space after completion in shell (#2669)
When try-completion output or string itself end with / exit with
'exact symbol and not 'finished.
---
helm-mode.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/helm-mode.el b/helm-mode.el
index 9db0e29b58..5bf41b3d26 100644
--- a/helm-mode.el
+++ b/helm-mode.el
@@ -2716,7 +2716,9 @@ Can be used for `completion-in-region-function' by
advicing it with an
(funcall exit-fun string
(helm-acase (try-completion initial-input collection
predicate)
((guard (and (stringp it)
- (string-match "/\\'" it)))
+ (or (string-match "/\\'" it)
+ ;; Fix bug#2669.
+ (string-match "/\\'" string))))
'exact)
(t 'finished))))
(remove-hook 'helm-before-action-hook
'helm-completion-in-region--selection)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/helm c2f9bee9f4: Avoid space after completion in shell (#2669),
ELPA Syncer <=