From 567889e69fb00d7a3f7f661b8552916cb7e03a3d Mon Sep 17 00:00:00 2001 From: Jan Schulz Date: Fri, 4 Dec 2015 19:57:08 +0100 Subject: [PATCH] Fix: don't garble the input line for long lines in git projects If having a long line of input in histroy, which went on into the second row and using to get back to it, you got the effect that the input was split over three lines: "text, empty, text", but using the arrows do move to the front of the first line was moving the cursor in the second (empty) row. You could change the text, but you needed to do it "in the dark". No idea why s/os.execute/is.popen/ fixes this, but it does. Partly adresses https://github.com/cmderdev/cmder/issues/749 --- vendor/cmder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/cmder.lua b/vendor/cmder.lua index deea404..0579050 100644 --- a/vendor/cmder.lua +++ b/vendor/cmder.lua @@ -142,7 +142,7 @@ end -- @return {bool} --- function get_git_status() - return os.execute("git diff --quiet --ignore-submodules HEAD 2>nul") + return io.popen("git diff --quiet --ignore-submodules HEAD 2>nul") end function git_prompt_filter()