ShellExecute inserts newline in Far interface
Posted: Wed 11 Oct, 2017 11:21
Hey all, I created the following command shortcut:
which will open the argument in Visual Studio Code. The problem I have is that this command always inserts a newline character in Far, messing up the interface. It only happens with this particular shell exectue handler, if you replace it by
it works without problem. Does anyone know what is causing this and how to avoid it?
Code: Select all
CommandLine {
prefixes = "vsc";
action = function(prefix, filename)
win.ShellExecute(nil, "VSCode", filename, nil, panel.GetPanelDirectory(nil, 1).Name)
end;
}
Code: Select all
win.ShellExecute(nil, "open", "notepad", filename, panel.GetPanelDirectory(nil, 1).Name)