lib/rib/more/multiline_history_file.rb in rib-0.9.0 vs lib/rib/more/multiline_history_file.rb in rib-0.9.1
- old
+ new
@@ -31,9 +31,10 @@
}
end
def write_history
return super if MultilineHistoryFile.disabled?
+ # TODO: hisotroy.map is MRI 1.9+
config[:history] = history.to_a.map{ |line|
line.gsub("\n", "#{config[:multiline_history_file_token]}\n")
}
super
end