Merge pull request #2661 from geekrumper/master

Fix #2654: blank space added between {cwd} and version_control variable
This commit is contained in:
Dax T Games 2022-02-03 17:46:30 -05:00 committed by GitHub
commit 99452c8158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 uah ~= '' then uah = get_uah_color() .. uah end
if cwd ~= '' then cwd = get_cwd_color() .. cwd 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 = "{uah}{cwd}" .. version_control .. get_lamb_color() .. cr .. "{env}{lamb} \x1b[0m"
prompt = string.gsub(prompt, "{uah}", uah) prompt = string.gsub(prompt, "{uah}", uah)