aboutsummaryrefslogtreecommitdiffstats
path: root/eval_error.c
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-08 09:08:37 +0000
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-01-08 09:08:37 +0000
commit497075b3a1b2021f882f13b86b1e96dc87513d6f (patch)
tree982ea72c5f1f39e7a27610108a9b9023b3e793d4 /eval_error.c
parent50784a0a4412df551d96dd01067473cd4226481b (diff)
downloadruby-497075b3a1b2021f882f13b86b1e96dc87513d6f.tar.gz
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/eval_error.c b/eval_error.c
index 8e10c57d8e..edc8639705 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -172,11 +172,11 @@ print_errinfo(const VALUE eclass, const VALUE errat, const VALUE emesg, const VA
if (RSTRING_PTR(epath)[0] == '#')
epath = 0;
if ((tail = memchr(einfo, '\n', elen)) != 0) {
- write_warnq(str, emesg, einfo, tail - einfo);
+ write_warnq(str, emesg, einfo, tail - einfo);
tail++; /* skip newline */
}
else {
- write_warnq(str, emesg, einfo, elen);
+ write_warnq(str, emesg, einfo, elen);
}
if (epath) {
write_warn(str, " (");
@@ -192,7 +192,7 @@ print_errinfo(const VALUE eclass, const VALUE errat, const VALUE emesg, const VA
}
if (tail && einfo+elen > tail) {
if (!highlight) {
- write_warnq(str, emesg, tail, einfo+elen-tail);
+ write_warnq(str, emesg, tail, einfo+elen-tail);
if (einfo[elen-1] != '\n') write_warn2(str, "\n", 1);
}
else {
@@ -202,7 +202,7 @@ print_errinfo(const VALUE eclass, const VALUE errat, const VALUE emesg, const VA
tail = memchr(einfo, '\n', elen);
if (!tail || tail > einfo) {
write_warn(str, bold);
- write_warnq(str, emesg, einfo, tail ? tail-einfo : elen);
+ write_warnq(str, emesg, einfo, tail ? tail-einfo : elen);
write_warn(str, reset);
if (!tail) {
write_warn2(str, "\n", 1);
@@ -212,7 +212,7 @@ print_errinfo(const VALUE eclass, const VALUE errat, const VALUE emesg, const VA
elen -= tail - einfo;
einfo = tail;
do ++tail; while (tail < einfo+elen && *tail == '\n');
- write_warnq(str, emesg, einfo, tail-einfo);
+ write_warnq(str, emesg, einfo, tail-einfo);
elen -= tail - einfo;
einfo = tail;
}