editor: Ctrl+Delete deletes whitespaces AND subsequent word

Open Beginner friendly
#4,031 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
desktop, frontend

Research direction

Start by locating the editor’s Ctrl+Delete handling and the tests for word deletion; the issue does not name specific files. Reproduce with leading spaces and at a line end, then check how whitespace and the following word are selected. Done when Ctrl+Delete preserves the word after leading indentation and does not unexpectedly delete the next line’s word.

Written by the indexing model from the issue text.

Description

Description

editor: Ctrl+Delete deletes whitespaces AND subsequent word

Environment

  • GPUI Kit: v0.10.0
  • Platform: Windows

Steps to Reproduce

  1. cargo run
  2. In editor, enter four leading spaces.
  3. Move cursor at the beginning (press Home key).
  4. Press Ctrl+Delete will delete 4 spaces and "four", remaining text will be leading spaces.

This problem also happens at the line end. Pressing ctrl+delete at the end of line will delete the word at the beginning of next line and also indentation between will be deleted.

Expected

four leading spaces remaining.

Actual

leading spaces remaining.

Dominant language
Rust
Stars
20.8k
Forks
1.3k
Avg merge
1d 16m
Merged PRs (30d)
270

Getting set up

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.

More from longbridge/gpui-kit

All issues in longbridge/gpui-kit

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.