Skip to content


Browse files Browse the repository at this point in the history
Cope with frozen-string-literal
When running irb 1.2.1 (2019-12-24) with frozen-string-literal enabled, it crashes in reline with `can't modify frozen String (FrozenError)`

Steps to reproduce: 

`RUBYOPT="--enable-frozen-string-literal" irb`
  • Loading branch information
fnordfish authored and aycabta committed Dec 4, 2020
1 parent 0cf0730 commit f438641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/ansi.rb
Expand Up @@ -172,7 +172,7 @@ def self.set_screen_size(rows, columns)

def self.cursor_pos
res = ''
res =
m = nil
@@input.raw do |stdin|
@@output << "\e[6n"
Expand Down

0 comments on commit f438641

Please sign in to comment.