diff options
author | akater <nuclearspace@gmail.com> | 2020-05-03 06:50:55 +0000 |
---|---|---|
committer | akater <nuclearspace@gmail.com> | 2020-05-03 06:50:55 +0000 |
commit | 21261899704ecd8f39d74f5ea0c987d706314079 (patch) | |
tree | af13fabbc404bbe64c376e8b4e1b53f155e12a1d /helm-mode.el | |
parent | b448bc10429775e6a6b092832c5406f523488043 (diff) |
Append separator when completing multiple candidates
* helm-mode.el (helm-completion-in-region--insert-result): Separator
is auto-appended when completing multiple candidates so that user
doesn't have to type it in explicitly to trigger completion. It is
safe to submit completion results with trailing separator still in
minibuffer.
Diffstat (limited to 'helm-mode.el')
-rw-r--r-- | helm-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-mode.el b/helm-mode.el index 15b52e58..f09aeb04 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -1873,7 +1873,7 @@ Can be used for `completion-in-region-function' by advicing it with an (when (looking-back crm-separator (1- (point))) (setq sep (match-string 0)))) (funcall completion-list-insert-choice-function - beg end (mapconcat 'identity result sep)))) + beg end (mapconcat 'identity (append result '("")) sep)))) (t nil))) (defun helm-mode--in-file-completion-p () |