artisticat1 / obsidian-latex-suite

Make typesetting LaTeX as fast as handwriting through snippets, text expansion, and editor enhancements
MIT License
1.43k stars 56 forks source link

[BUG] When typing in Chinese reaches the end of the line, the input becomes ineffective. #272

Closed YIRU69 closed 5 months ago

YIRU69 commented 8 months ago

Description

Firstly, I need to clarify this issue, as it significantly affects writing. It took me a long time today to pinpoint this problem. The conditions for it to occur are somewhat stringent. It needs to satisfy two conditions:

  1. The latex suit plugin must be enabled.
  2. Open a theme for editing, like the "border" theme I tested.

To Reproduce

I have provided a test file package; if you need to reproduce the issue, you can try using it. I have conducted the following tests which can increase the probability of this issue occurring; it's not 100% reproducible, but there is a high chance of occurrence.

  1. Adjust the width of the window to make the last character appear at the end of the line, and at the same time, ensure that it is positioned in the middle of the page, just like in the test file.
  2. Use the Chinese input method, and then start typing, you will encounter the situation I have recorded below.

If you need any more details, I am happy to explain. I really hope to resolve this issue, as I cannot afford to stop using latex or the themes.

Additional Info

screenshots

YIRU69 commented 8 months ago

1.zip This is my test repository for your reference to reproduce the issue.