diff options
author | Syohei YOSHIDA <syohex@gmail.com> | 2016-06-11 22:26:08 +0900 |
---|---|---|
committer | Syohei YOSHIDA <syohex@gmail.com> | 2016-06-11 22:26:08 +0900 |
commit | 673c8174648784ad3123347669c398509afb6ae4 (patch) | |
tree | 04355e9bdf236d4c338deae1ebca105fb8d9217b /helm-mode.el | |
parent | c9b5403fb120a36d1c628af98a7db528b07edac7 (diff) |
Don't append space if input is empty
Diffstat (limited to 'helm-mode.el')
-rw-r--r-- | helm-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helm-mode.el b/helm-mode.el index d171836d..1b53edd8 100644 --- a/helm-mode.el +++ b/helm-mode.el @@ -1076,7 +1076,8 @@ Can be used as value for `completion-in-region-function'." (setcdr last-data nil)) 0)) (init-space-suffix (unless (or helm-completion-in-region-fuzzy-match - (string-suffix-p " " input)) + (string-suffix-p " " input) + (string= input "")) " ")) (file-comp-p (or (eq (completion-metadata-get metadata 'category) 'file) (helm-mode--in-file-completion-p) @@ -1115,8 +1116,7 @@ Can be used as value for `completion-in-region-function'." (cond ((and file-comp-p (not (string-match "/\\'" input))) (concat (helm-basename input) - (unless (string= input "") - init-space-suffix))) + init-space-suffix)) ((string-match "/\\'" input) nil) ((or (null require-match) (stringp require-match)) |