Skip to content

Commit

Permalink
Merge pull request #2738 from DRSDavidSoft/patch-3
Browse files Browse the repository at this point in the history
Related to #2654: Move space from "{git}{hg}{svn}" to individual parts
  • Loading branch information
daxgames authored Sep 9, 2022
2 parents ef0de62 + a617397 commit 05db365
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -507,7 +507,7 @@ local function git_prompt_filter()
else
color = colors.nostatus
end
clink.prompt.value = string.gsub(clink.prompt.value, "{git}", color.."("..verbatim(branch)..")")
clink.prompt.value = string.gsub(clink.prompt.value, "{git}", " "..color.."("..verbatim(branch)..")")
return false
end
end
Expand Down Expand Up @@ -555,7 +555,7 @@ local function hg_prompt_filter()
end
end

clink.prompt.value = string.gsub(clink.prompt.value, "{hg}", verbatim(result))
clink.prompt.value = string.gsub(clink.prompt.value, "{hg}", " "..verbatim(result))
return false
end

Expand Down Expand Up @@ -609,7 +609,7 @@ local function svn_prompt_filter()
color = colors.dirty
end

clink.prompt.value = string.gsub(clink.prompt.value, "{svn}", color.."("..verbatim(branch)..")")
clink.prompt.value = string.gsub(clink.prompt.value, "{svn}", " "..color.."("..verbatim(branch)..")")
return false
end
end
Expand Down

0 comments on commit 05db365

Please sign in to comment.