aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 0fa3cb5282..45c15bdc99 100644
--- a/ruby.c
+++ b/ruby.c
@@ -729,6 +729,7 @@ load_file(fname, script)
if (RSTRING(line)->ptr[RSTRING(line)->len-2] == '\r')
RSTRING(line)->ptr[RSTRING(line)->len-2] = '\0';
if (p = strstr(p, " -")) {
+ p++; /* skip space before `-' */
while (*p == '-') {
p = moreswitches(p+1);
}