leading indentation disappears in query editor
- Dominant language
- Python
- Stars
- 486
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
I noticed a while ago the following behaviour: when starting a new line the cursor appears to get stuck on the start of the line if the line contains only spaces. This only happens if indentation is set to spaces. It also only happens for lines that contain between 9 and 19 spaces. You can just hit space on an empty line to see the effect.
In the gif I:
- type the number of the current indentation level
- hit enter
- hit tab
- repeat

Contributor guide
No contributing guide indexed for this repository
Research direction
Start in the query editor and reproduce the issue with spaces-only lines, using indentation set to spaces and testing lines containing 9–19 spaces. Trace what happens after pressing Space, Enter, and Tab; done means the cursor no longer appears stuck at the start of these lines.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100