You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the number of characters is not important, just need to match this rule:
the first line ('x' line) should be long enough. (exceeding the boundary, causing a horizontal scrollbar to appear)
the second line should long enough. (exceeding the boundary)
the number of characters in the second line should be smaller than (or equal to) the first line. (in the example, each line has 40 characters)
And I find out that snapshot.longest_row() returns the first line because each line has the same character count. However, since Chinese characters have a wider character width than English characters, the same number of characters will appear visually longer in Chinese, causing them to exceed the boundary and become unreadable.
I want to dive deeper into this issue, but once inside snapshot, the problem goes beyond my ability. I hope someone can either fix this issue or guide me on how to investigate it further.
Summary
Steps to trigger the problem:
Type a long line of Chinese characters in a markdown file until exceeding the width of the window
The content is as followed:
肿瘤的扩散
2. 淋巴管
3. 血管
4. 神经束衣
2. 血道转移:间叶组织起源的恶性肿瘤;肝细胞癌,肾细胞癌;大部分癌的晚期
3. 种植性转移:恶性肿瘤侵犯器官表面时,瘤细胞脱落,并种植在体腔内器官的表面。见于原发于腹腔的恶性肿瘤。
Copy pastable code for above:
Actual Behavior:
The end of the line cannot be seen. There is still hidden characters of the third line of the table.
Expected Behavior:
Drag the vertical scrollbar, and the end of the line should be seen.
Zed Version and System Specs
Zed: v0.172.5 (Zed Preview)
OS: Linux Wayland ubuntu 17
Memory: 30.9 GiB
Architecture: x86_64
GPU: AMD Radeon RX 7700 XT || AMD open-source driver || 2024.Q1.2 (LLPC)
The text was updated successfully, but these errors were encountered: