summaryrefslogtreecommitdiff
path: root/lib/reline/unicode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/reline/unicode.rb')
-rw-r--r--lib/reline/unicode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb
index 3b5ef6fb99..cd8c27e85b 100644
--- a/lib/reline/unicode.rb
+++ b/lib/reline/unicode.rb
@@ -117,7 +117,7 @@ class Reline::Unicode
end
end
- def self.split_by_width(str, max_width, encoding)
+ def self.split_by_width(str, max_width, encoding = str.encoding)
lines = [String.new(encoding: encoding)]
height = 1
width = 0