lapce / lapce/lapce

First line not reliably selectable

Open
#1,071 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-ui C-bug
Dominant language
Rust
Stars
38.9k
Forks
1.3k
Avg merge
19m
Merged PRs (30d)
1

Description

Lapce Version

0.2.0 Flatpak

System information

Fedora 36

Describe the bug

When Lapce is resized to be smaller, at a certain point the first line in a file becomes unselectable, and instead just greys out the active tab. This doesn't happen when the window is big enough, such as maximised or split-screen.

Additional information

Screen recording of the bug

A workaround seems to be to click before the 9th or 10th character. It appears as if a search panel gets triggered after that, although invisible?

A workaround seems to be to click before the 9th or 10th character

On lower resolutions, the problem persists, and the workaround is the same, but the window doesn't have to get as small for the bug to occur.

Kooha-2022-09-06-18-39-26.webm

Contributor guide

Open the contributing guide

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 the Lapce 0.2.0 Flatpak on Fedora 36 by shrinking the window until the first line cannot be selected. Start by tracing the editor's input handling around the first-line click and resize behavior; done means the first line remains selectable at small window sizes without greying out the active tab or triggering an invisible search panel.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.