racket / racket/drracket

Can't press up to move the caret when there's a word wrapping

Open
#640 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

Consider:

#lang racket


("aaaaaaaaaaaaaaaaaa" "bbbbbbbbbbbbbbbbbbb")


123

Paste this to the definition pane. Enable word wrapping. And resize the definition pane so that it looks exactly like this:

Screenshot 2023-09-14 at 4 42 37 AM

Now, place the caret at the last line, and repeatedly hit "Up" to move the caret toward the first line. It will get stuck in front of "bbbb.

Note that the width of the window must be just right to provoke the issue (with the ending " entering a newline). If the width is too small, the caret is able to moved just fine. If it's too large, it will work fine too.

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

Start by reproducing the issue in DrRacket's definition pane with the provided Racket snippet, word wrapping enabled, and the pane resized to the described width. Verify the caret becomes stuck before "bbbb" when pressing Up; done means repeated Up presses move the caret through the wrapped lines normally.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.