Sha256: a5150991fc77c809da907dffb7177c64352e3b1e873ecbba4d4f53e7e949def4

Contents?: true

Size: 291 Bytes

Versions: 8

Compression:

Stored size: 291 Bytes

Contents

# Experimental
# Patches Reline's get_mbchar_width to use Unicode::DisplayWidth

require "reline"
require "reline/unicode"

require_relative "../display_width"

class Reline::Unicode
  def self.get_mbchar_width(mbchar)
    Unicode::DisplayWidth.of(mbchar, Reline.ambiguous_width)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
unicode-display_width-3.1.4 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.1.3 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.1.2 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.1.1 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.1.0 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.0.1 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.0.0 lib/unicode/display_width/reline_ext.rb
unicode-display_width-3.0.0.pre lib/unicode/display_width/reline_ext.rb