From 6c016788d43dec13d0a342ed75503efb43859972 Mon Sep 17 00:00:00 2001 From: Benjamin Staneck Date: Thu, 7 Jun 2018 17:04:06 +0200 Subject: [PATCH] Revert "sanitize dir before assigning to prompt" This reverts commit 0b2d7bd6557c6517b3fd106a6f2434fdb55acff8. --- vendor/clink.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vendor/clink.lua b/vendor/clink.lua index aa357d5..12d0616 100644 --- a/vendor/clink.lua +++ b/vendor/clink.lua @@ -41,13 +41,6 @@ local function set_prompt_filter() -- color codes: "\x1b[1;37;40m" local cmder_prompt = "\x1b[1;32;40m{cwd} {git}{hg}{svn} \n\x1b[1;39;40m{lamb} \x1b[0m" local lambda = "λ" - local function sanitize_dir(str) - str = string.gsub(str, "+", " ") - str = string.gsub(str, "%%(%x%x)", function(h) return string.char(tonumber(h,16)) end) - str = string.gsub(str, "\r\n", "\n") - return str - end - cmder_prompt = sanitize_dir(cmder_prompt) cmder_prompt = string.gsub(cmder_prompt, "{cwd}", cwd) if env ~= nil then lambda = "("..env..") "..lambda @@ -242,7 +235,7 @@ end -- Get the status of working dir -- @return {bool} --- -local function get_svn_status() +function get_svn_status() local file = io.popen("svn status -q") for line in file:lines() do file:close()