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.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/reline/unicode.rb b/lib/reline/unicode.rb
index df2f6719a4..d482997bab 100644
--- a/lib/reline/unicode.rb
+++ b/lib/reline/unicode.rb
@@ -89,6 +89,9 @@ class Reline::Unicode
| #{ EastAsianWidth::TYPE_NA }
| #{ EastAsianWidth::TYPE_N }
)
+ | (?<ambiguous_width>
+ #{EastAsianWidth::TYPE_A}
+ )
/x
def self.get_mbchar_width(mbchar)
@@ -98,6 +101,7 @@ class Reline::Unicode
when m[:width_3] then 3
when m[:width_0] then 0
when m[:width_1] then 1
+ when m[:ambiguous_width] then Reline.ambiguous_width
else
nil
end