From 182a408c2c4113eb316c2a87e35880144afb4498 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Wed, 14 Aug 2019 16:25:15 +0900 Subject: change Proc#to_s format ('@...' -> ' ...') (#2362) Now Proc#to_s returns "#". However, it is convenient to select a file name by (double-)clicking on some terminals by separating ' ' instead of '@' like "#" [Feature #16101] --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc.c') 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)); } -- cgit v1.2.3