summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pry/repl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/repl.rb b/lib/pry/repl.rb
index a6174d5d..ba032c7f 100644
--- a/lib/pry/repl.rb
+++ b/lib/pry/repl.rb
@@ -243,7 +243,7 @@ class Pry
# rb-readline doesn't support this method:
# https://github.com/ConnorAtherton/rb-readline/issues/152
if Readline.vi_editing_mode?
- overhang += current_prompt.length - indented_val.length
+ overhang = output.width - current_prompt.size - indented_val.size
end
rescue NotImplementedError
# VI editing mode is unsupported on JRuby.