Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Huge line breaks #27

Open
manueldeljesus opened this issue Nov 15, 2022 · 11 comments
Open

Huge line breaks #27

manueldeljesus opened this issue Nov 15, 2022 · 11 comments

Comments

@manueldeljesus
Copy link

I have installed minimap in Doom Emacs on Fedora 36. However, when I activate the minimap, each line break is like three or four lines high, making the minimap unreadable.

Image

Any idea on how to solve the issue?

Your help will be much appreciated.

@manueldeljesus
Copy link
Author

It seems that the problem may not be that newline characters are being inserted, but that the minimap buffer is using the same line height that the normal buffer is using. When clicking on the minimap, the size of the cursor is identical to the size of the cursor on the main buffer. Any way to control this behavior?

@manueldeljesus
Copy link
Author

It seems that the problem only affects Org files. It seems to be working correctly with Python files. Is this the expected behavior -not working with Org files-?

@jgarvin
Copy link

jgarvin commented Dec 31, 2022

@manueldeljesus I am encountering the same issue editing Rust source files, so it's not Org specific. Maybe something in common about our emacs versions? M-x emacs-version:

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2021-05-14

@manueldeljesus
Copy link
Author

GNU Emacs 28.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-07-15

Well, same big version, same OS, but not much more. However, it is interesting to know that the bug affects other modes, and not only Org-mode. It may make debugging it easier.

@samrjack
Copy link

In one of the other issues, this was brought up and the stated short-term solution is to disable org-indent-mode. I don't know what's going on with your rust file @jgarvin , maybe rust mode has some functionality that's interfering with the line height too?

@manueldeljesus
Copy link
Author

Is it possible to disable org-indent-mode only for the minimap buffer? Or is it necessary to disable it globally?

@manueldeljesus
Copy link
Author

It seems that deactivating org-indent-mode in the minimap buffer also deactivates it in the main buffer. So, no luck in that line of attack.

@samrjack
Copy link

I spent a while last night trying to discern exactly what about the indent mode was causing issues. I'll look more later when I have time. One thing I found was that anything not under a headline has the line height you'd expect in the minimap.

@forbade
Copy link

forbade commented May 31, 2023

Any luck fixing this? This is the only issue I could find on this problem.

@nazzacode
Copy link

I second this. Line breaks make minimap unusable with org mode which is such a shame.

@contrapunctus-1
Copy link

This seems to happen not just in Org buffers, but also in any source code buffers which have highlight-indent-guides-mode enabled.

Tested on GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-05-15, modified by Debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants