xim-rs icon indicating copy to clipboard operation
xim-rs copied to clipboard

fix: xim-ctext: Fix decode macro to track bytes

Open npmania opened this issue 10 months ago • 0 comments

In current implementation of decode! macro, length of bytes read returned by encoding_rs::Decoder::decode_to_string (link) is not used, causing early part of japanese string to be repeated. This commit fixes invalid behavior by using previously mentioned length value to prevent decoding certain part of bytes multiple times.

npmania avatar Apr 29 '24 20:04 npmania