micro
micro copied to clipboard
Hangul text gets cut off by scroll bar when softwrap is on
Description of the problem or steps to reproduce
- Open a blank file in micro
- Enter command mode and type
set softwrap true
to enable linewrapping - Paste in a long paragraph of hangul (Korean) text, such as "비트코인에서 2017년 12월 10일 하드 포크될 예정인 알트코인이라고 알려졌었던 비트코인 플래티넘(Bitcoin Platinum)을 내세운 사기극(이자 나무위키를 이용한 허위광고). 개발진 측에선 사기가 아니라 실제로 하드 포크가 될 알트코인이며 후술할 사건은 일부 개발자의 폭주라고 주장하고 있었으나, 2018년 기준으로 완벽하게 스캠코인이요, 사기 사건임이 확정되었다."
- Depending on how the window is sized, some characters get cut off:
The pink dots indicate dropped characters.
I think the issue is that hangul (as well as Chinese) characters typically take up the width of 1.5 monospace Latin characters, so when a character at the end of a line can only be displayed partially, it is simply dropped.
Specifications
Micro version: 2.0.1-1 installed via apt install
(micro -version
reports Version: 0.0.0-unknown.
)
OS: Ubuntu 20.04.4 LTS x86_64
Terminal: GNOME Terminal 3.36.2
(I have the same issue in Alacritty terminal on Arch.)