Hi
Attached a patch to solve two issues:
1. The commandLine argument --file=c:\foo\bar.cpp:42
should make CB open the file c:\foo\bar.cpp and show line 42.
in fact it only opened the file without showing line 42.
The reason for this is the colon after the drive letter.
2. If a cb instance is already running, the app of a second instance doesn't evaluate command line arguments given by plugins.
With this patch, it becomes possible for plugins to receive command line arguments in the first instance (additional event).
The realized solution does send the cmd line to the first instance where it is possible for plugins to check the Parse results.
Patch to cbDiff-plugin
http://forums.codeblocks.org/index.php/topic,12829.0.html to show the usage is also attached.
Any objections? If not, I will apply it in a few days.
wxWidgets bug which brings old arguments on new Parse() runs is already corrected, see here:
http://trac.wxwidgets.org/changeset/77502 Is anbody maintaining the cbDiff plugin?
regards danselmi