adamyg / mcwin32

Midnight Commander for Windows
https://sourceforge.net/projects/mcwin32/
204 stars 13 forks source link

mc seem to ignore EDITOR env variable #55

Closed fekir closed 1 year ago

fekir commented 1 year ago

Test scenario

$env:EDITOR=nvim
mc

after opening mc, deselect the option "use internal editor" and open a .txt file for editing

The text file is openend with notepad.exe, instead of nvim.exe (nvim.exe is in PATH)

On a GNU/Linux system "EDITOR=nvim mc" let's mc use the $EDITOR as editor if not using the internal

fekir commented 1 year ago

Please ignore this issue, mc seems to work correctly.

My issue was that the environment variable pointed to a powershell alias, it's understandable that mc does not know what to launch