micro-editor / micro-editor/micro

Foreign (Bengali) unicode characters cause rendering issues

Open
#2,925 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
29.6k
Forks
1.4k
Avg merge
2d 18h
Merged PRs (30d)
10

Description

Description of the problem or steps to reproduce

Open a file with some Bengali text in it and move around a bit with the cursor. Some characters are left behind and even some line numbers disappear temporarily.

You can use this bit from Fedora's chromium-browser.desktop to reproduce the issue:

[Desktop Entry]
Version=1.0
Name=Chromium Web Browser
# ...
Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন
# ...

(depending on your browser/fonts it may not render correctly on Github but you should be able to paste it into micro)

Here's a short demonstration of what happens using Asciinema:
asciicast

I have confirmed this is a micro specific bug rather than something to do with my terminal (or other setup) – I am able to view the same file without issues in the same terminal with other programs (nvim, kakoune, helix).

Specifications

Commit hash: 1231d242 (version 2.0.13-dev.8)
OS: OpenSUSE Tumbleweed
Terminal: happens in all terminals I tried (xterm, terminator, gnome-terminal)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in micro using the Bengali text from the report, moving the cursor through the sample while watching stale characters and line numbers. Compare the behavior with the listed terminal editors and inspect micro's terminal rendering path. Done means Bengali text renders correctly without leftover characters or disappearing line numbers.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.