{"action":"closed","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/375","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/375/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/375/events","html_url":"https://github.com/junegunn/fzf/issues/375","id":110855843,"number":375,"title":"Duplicate spaces on bash tab completion","user":{"login":"wzyboy","id":459384,"avatar_url":"https://avatars.githubusercontent.com/u/459384?v=3","gravatar_id":"","url":"https://api.github.com/users/wzyboy","html_url":"https://github.com/wzyboy","followers_url":"https://api.github.com/users/wzyboy/followers","following_url":"https://api.github.com/users/wzyboy/following{/other_user}","gists_url":"https://api.github.com/users/wzyboy/gists{/gist_id}","starred_url":"https://api.github.com/users/wzyboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wzyboy/subscriptions","organizations_url":"https://api.github.com/users/wzyboy/orgs","repos_url":"https://api.github.com/users/wzyboy/repos","events_url":"https://api.github.com/users/wzyboy/events{/privacy}","received_events_url":"https://api.github.com/users/wzyboy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-11T13:31:48Z","updated_at":"2015-10-11T14:43:04Z","closed_at":"2015-10-11T14:43:04Z","body":"Hi, thanks for your great work. I have found a little bug in fzf's bash completion scripts.\r\n\r\nWhen using bash completion for `git` subcommands like `git commit`, `git reset` et cetra, fzf will somehow add an extra space to the end of the line.\r\n\r\nFor example, in a bash session without `source`ing `completion.bash`, when I type `git com` followed by Tab, I get `git commit ` with one single space in the end of the line.\r\n\r\nHowever, after `source`ing `completion.bash`, when I type `git com` followed by Tab, I get `git commit  ` with two spaces in the end of the line.\r\n\r\nThis, in most cases, will not pose a problem. It will break some completions in some cases though. When I type `git commit --fix` followed by Tab, instead of getting `git commit --fixup=` without any trailing space, I get `git commit --fixup= ` with a trailing space. Thus I cannot use further completion like `--fixup=HEAD` without deleting the trailing space first."}}