We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There seems to be something wrong with the way the character width of half-width katakana is handled.
irb(main):001:0> irb_info => Ruby version: 2.7.5 IRB version: irb 1.3.8.pre.11 (2021-10-09) InputMethod: ReidlineInputMethod with Reline 0.2.8.pre.11 RUBY_PLATFORM: amd64-freebsd13 LANG env: ja_JP.UTF-8 East Asian Ambiguous Width: 2
In irb, type "ガギグゲゴ
"ガギグゲゴ
% irb irb(main):001:0" "ガギグゲゴ _
The cursor is located at the end of line.
The cursor is located in the word.
irb(main):001:0> ga = "ガ" => "ガ" irb(main):002:0> ga.grapheme_clusters => ["ガ"] irb(main):003:0> Reline::Unicode.get_mbchar_width(ga) => 1 irb(main):004:0>
PuTTYrv 0.76-ranvis (CJK)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Description
There seems to be something wrong with the way the character width of half-width katakana is handled.
Steps to Reproduce
Environment:
Scenario:
In irb, type
"ガギグゲゴ
Expected:
The cursor is located at the end of line.
Actual:
The cursor is located in the word.
Terminal Emulator
PuTTYrv 0.76-ranvis (CJK)
The text was updated successfully, but these errors were encountered: