diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-08-14 16:25:15 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 16:25:15 +0900 |
commit | 182a408c2c4113eb316c2a87e35880144afb4498 (patch) | |
tree | a4b62e5d846fb1317522a022c29411b8b1b2ea6d /proc.c | |
parent | 0623e2b7cc621b1733a760b72af246b06c30cf96 (diff) | |
download | ruby-182a408c2c4113eb316c2a87e35880144afb4498.tar.gz |
change Proc#to_s format ('@...' -> ' ...') (#2362)
Now Proc#to_s returns
"#<Proc:0x00000237a0f5f170@t.rb:1>".
However, it is convenient to select a file name by (double-)clicking
on some terminals by separating ' ' instead of '@' like
"#<Proc:0x00000237a0f5f170 t.rb:1>"
[Feature #16101]
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1310,7 +1310,7 @@ rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_i case block_type_iseq: { const rb_iseq_t *iseq = rb_iseq_check(block->as.captured.code.iseq); - rb_str_catf(str, "%p@%"PRIsVALUE":%d", (void *)self, + rb_str_catf(str, "%p %"PRIsVALUE":%d", (void *)self, rb_iseq_path(iseq), FIX2INT(iseq->body->location.first_lineno)); } |