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

Buffer width is truncated to default when scroll. #22

Open
zyqhi opened this issue Apr 4, 2015 · 3 comments
Open

Buffer width is truncated to default when scroll. #22

zyqhi opened this issue Apr 4, 2015 · 3 comments

Comments

@zyqhi
Copy link

zyqhi commented Apr 4, 2015

When I open a file and work with sublimity-attractive-centering, lines in the buffer are centralized. But when I scroll the buffer, lines aligns to left again. After scrolled, lines are centralized again. It causes a flash of the screen.

Is it a bug? or any else?

@zk-phi
Copy link
Owner

zk-phi commented Apr 5, 2015

It seems a bug, but I couldn't reproduce on my environment.
Does it happens also on the vanilla Emacs ? Or can you detect the combination of modes that causes the problem ?

Anyway thanks for reporting.

@zyqhi
Copy link
Author

zyqhi commented Apr 6, 2015

Thanks for your response. It is the global-linum-mode that causes the problem. When I start the vanilla Emacs, and then enable sublimity, it works well. But after enable global-linum-mode, the problem appears again. Here is the code:

(require 'linum)
(global-linum-mode t)

@zk-phi
Copy link
Owner

zk-phi commented Apr 6, 2015

Ah, I see, both linum-mode and sublimity set window margins in after-window-configuration-change-hook and they conflict.
It may need some tricky workaround to fix.

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

No branches or pull requests

2 participants