micro-editor / micro-editor/micro

Replace some invisible characters with space

Open
#2,155 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Micro seems to replace some special or invisible characters with spaces

Specifications

In Persian and other languages ​​we have many invisible characters, for example:
u+200c
u+200d
u+200e
u+200f

But when we use this character in the micro editor, a space is displayed instead.
Everything is fine in the output file and there is no problem. But displaying text in the editor is confusing
You can try the following examples.
4 characters: slam
12 characters: sl‌‌‌‌‌‌‌‌am
slam in Persian is the same as hello

I expect both of these expressions to be the same but displayed in micro in "sl               am" form.
thank you

Commit hash: 6bc498e6
OS: ubuntu 20.04
Terminal: gnome-terminal
micro 2.0.9

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

No source file, test, or entry point is named. First reproduce the examples in micro 2.0.9 on Ubuntu 20.04 with GNOME Terminal, then trace how the editor renders U+200C, U+200D, U+200E, and U+200F; done means these characters display distinctly from spaces while the output file remains unchanged.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.