diff options
Diffstat (limited to 'lib/pry/commands/ls/local_vars.rb')
-rw-r--r-- | lib/pry/commands/ls/local_vars.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/ls/local_vars.rb b/lib/pry/commands/ls/local_vars.rb index 9b1e14e0..5bdd66b1 100644 --- a/lib/pry/commands/ls/local_vars.rb +++ b/lib/pry/commands/ls/local_vars.rb @@ -31,7 +31,7 @@ class Pry colorized_lhs = color(:local_var, lhs) color_escape_padding = colorized_lhs.size - lhs.size pad = desired_width + color_escape_padding - "%-#{pad}s = %s" % [color(:local_var, colorized_lhs), rhs] + Kernel.format("%-#{pad}s = %s", color(:local_var, colorized_lhs), rhs) end end end |