summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-08-14 16:25:15 +0900
committerGitHub <noreply@github.com>2019-08-14 16:25:15 +0900
commit182a408c2c4113eb316c2a87e35880144afb4498 (patch)
treea4b62e5d846fb1317522a022c29411b8b1b2ea6d /proc.c
parent0623e2b7cc621b1733a760b72af246b06c30cf96 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 5957cc3c7b..f03d8683b6 100644
--- a/proc.c
+++ b/proc.c
@@ -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));
}