Hi Bram and list,
Ran into a problem with system() calls on Windows and vimrun.exe. Somehow an
extra space was being inserted in the arguments string passed to main(), so
running "vimrun.exe -s echo test" would result in an argument string of
"vimrun.exe -s echo test" being seen by vimrun. As vimrun.exe currently only
skips a single space in that position all my system() calls were failing.
A patch to skip any extra spaces is attached.
Regards,
Cam Sinclair
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff -r 917ffa98aeeb -r 736885cbf858 src/vimrun.c
--- a/src/vimrun.c Wed Sep 09 22:45:04 2015 +0200
+++ b/src/vimrun.c Fri Oct 09 08:51:49 2015 +0000
@@ -80,6 +80,9 @@
++p;
}
+ while (*p == ' ')
+ ++p;
+
/*
* "-s" argument: don't wait for a key hit.
*/