Skip to content

Commit ca274b0

Browse files
committed
Use plus operator to create unfrozen string
1 parent a982d6e commit ca274b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/reline/ansi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def self.set_screen_size(rows, columns)
8181

8282
def self.cursor_pos
8383
begin
84-
res = String.new
84+
res = +''
8585
m = nil
8686
@@input.raw do |stdin|
8787
@@output << "\e[6n"

0 commit comments

Comments
 (0)