gitui icon indicating copy to clipboard operation
gitui copied to clipboard

When entering Chinese information, the pop-up window does not follow the cursor

Open oriming opened this issue 1 year ago • 5 comments

Describe the bug When entering Chinese information, the pop-up window does not follow the cursor.

To Reproduce Steps to reproduce the behavior:

  1. Commit
  2. Enter submission information

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • macOS 13.1
  • GitUI 0.22.1
  • Rust 1.69.0
  • Alacritty 0.12.1

https://github.com/extrawurst/gitui/assets/61300279/63c3b4f3-16ce-42d3-8f33-76b8c7358116

oriming avatar May 25 '23 13:05 oriming

is that only the case for Chinese?

extrawurst avatar May 25 '23 21:05 extrawurst

@extrawurst This is a program bug and has nothing to do with the language.

oriming avatar May 26 '23 01:05 oriming

I can reproduce on Linux with other languages. The issue is the IME candidate input or candidate list should be aligned to the cursor, but in gitui it bounces between aligning to the bottom right corner of the modal and the top left of the app itself.

I assume this is not an upstream issue because other ratatui-based programs I tested (ttyper, systeroid) don't appear to have this behavior

eclairevoyant avatar Jun 20 '23 03:06 eclairevoyant

is that still an issue with 0.25 and the new textarea implementation?

extrawurst avatar Feb 27 '24 14:02 extrawurst

is that still an issue with 0.25 and the new textarea implementation?

Yes. I tested in windows terminal on windows 11 and ubuntu 20.04 , see the following picture.

image

ZCShou avatar Feb 28 '24 01:02 ZCShou