diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb index 0b1a7e1745..0fddbcc854 100644 --- a/lib/reline/ansi.rb +++ b/lib/reline/ansi.rb @@ -172,7 +172,7 @@ class Reline::ANSI def self.cursor_pos begin - res = '' + res = String.new m = nil @@input.raw do |stdin| @@output << "\e[6n"