Fix #2654: blank space added between {cwd} and version_control variable

This commit is contained in:
Edouard Coissy 2022-02-02 14:13:51 +01:00
parent 711fe2895e
commit 4098265a36

2
vendor/clink.lua vendored
View File

@ -166,7 +166,7 @@ local function set_prompt_filter()
if uah ~= '' then uah = get_uah_color() .. uah end
if cwd ~= '' then cwd = get_cwd_color() .. cwd end
local version_control = prompt_includeVersionControl and "{git}{hg}{svn}" or ""
local version_control = prompt_includeVersionControl and " {git}{hg}{svn}" or ""
prompt = "{uah}{cwd}" .. version_control .. get_lamb_color() .. cr .. "{env}{lamb} \x1b[0m"
prompt = string.gsub(prompt, "{uah}", uah)