From a617397aea181da2a54ff39164b067040075c692 Mon Sep 17 00:00:00 2001 From: David Refoua Date: Tue, 30 Aug 2022 21:59:09 +0430 Subject: [PATCH] move space from "{git}{hg}{svn}" to individual parts --- vendor/clink.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/clink.lua b/vendor/clink.lua index f63f3e9..e56e087 100644 --- a/vendor/clink.lua +++ b/vendor/clink.lua @@ -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) @@ -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 @@ -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 @@ -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