cmder-powerline-prompt icon indicating copy to clipboard operation
cmder-powerline-prompt copied to clipboard

powerline_npm.lua adds extra λ

Open dmwyatt opened this issue 5 years ago • 2 comments

https://i.imgur.com/CDrRkww.png

If I am in a folder that is actually an npm package, that extra lambda disappears and everything works correctly.

I confirmed that this was likely due to powerline_npm.lua by removing it from my config directory and restarting cmder.

I can't quite figure this one out myself...

dmwyatt avatar Mar 23 '19 22:03 dmwyatt

I have confirmed it is actually the new version of powerline_hg.lua causing this. I have not had the time to dig into it yet to determine why but a very quick diff shows all the refactoring including an init() that I believe is tacking on the prompt regardless of whether it is even that type. Rolling back to the prior version of powerline_hg.lua is obviously not the long-term solution since it needed the rewrite, but as a short-term fix if you are not worried so much about mercurial.

CollinChaffin avatar Apr 16 '19 20:04 CollinChaffin

Yeah, if I remove powerline_hg.lua it fixes it. Odd, that removing powerline_npm.lua also fixes it...

dmwyatt avatar Apr 19 '19 14:04 dmwyatt