doomemacs / doomemacs/core

Python line folding causes newly modified lines with parenthesis to shift around horizontally (GUI and CLI)

Open
#5,702 0 comments 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

When working in a Python file with some sections folded, moving the cursor over a parenthesis should not cause the text to move around.

### What actually happened?

While there is folded code in the file, if I move the cursor over a parenthesis, the line briefly shifts horizontally for a moment, then shifts back. After a while, this stops happening (unknown how long this takes). If a further edit is made to a line containing parenthesis, the shifting issue occurs again.

The issue seems to only be visual, but it is extremely distracting.

This issue happens in both GUI and CLI version of Doom.

### Describe your attempts to resolve the issue

Opening all folds in the file prevents the issue from happening.

### Steps to reproduce

1. Enable the python module and sync.
2. Open any python source file that has sections that can be folded.
3. Fold all sections with `zM`
4. Move the cursor over a parenthesis or bracket using movement keys.

### System Information

https://pastebin.com/1rmNkVac

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.