microsoft / microsoft/edit

Bug: Word Wrap feature doesn't function well with tabs on the line

Open
#479 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
14.6k
Forks
734
Avg merge
8h 40m
Merged PRs (30d)
4

Description

https://github.com/user-attachments/assets/dc927e9e-0acd-412f-9e47-4e41a788326e

Initial input text from while I was testing my PR [!397](https://github.com/microsoft/edit/pull/397):
```
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
🫡
#![feature(allocator_api, let_chains, linked_list_cursors, string_from_utf8_lossy_owned)]
test test test
```

When there are tabs on the line and Word Wrap is enabled, the cursor doesn't know where to go.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the terminal editor with the supplied text, tabs, emoji, and Word Wrap enabled; the issue references PR #397 for the initial input. Trace the cursor-positioning logic used by wrapped lines, then verify that cursor movement remains correct when tabs are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
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.