diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-24 05:44:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-24 05:44:58 +0000 |
commit | 9b48a6aec1d9a6618474114b6e92423edd1d776e (patch) | |
tree | 9a3462cb1a5e763d38a238297e949b153e787525 /lib/irb | |
parent | 8b6e9aa792a7a5b2c7f56ba8590d86473f406fad (diff) | |
download | ruby-9b48a6aec1d9a6618474114b6e92423edd1d776e.tar.gz |
workspace.rb: one more space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/workspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 63f0de6353..aa28db5502 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -119,7 +119,7 @@ EOF start_pos = [pos - 5, 0].max end_pos = [pos + 5, lines.size - 1].min - fmt = "%2s %#{end_pos.to_s.length}d: %s" + fmt = " %2s %#{end_pos.to_s.length}d: %s" body = (start_pos..end_pos).map do |current_pos| sprintf(fmt, pos == current_pos ? '=>' : '', current_pos + 1, lines[current_pos]) end.join("") |