sublimity icon indicating copy to clipboard operation
sublimity copied to clipboard

Buffer width is truncated to default when scroll.

Open zyqhi opened this issue 9 years ago • 3 comments

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?

zyqhi avatar Apr 04 '15 14:04 zyqhi

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.

zk-phi avatar Apr 05 '15 10:04 zk-phi

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)

zyqhi avatar Apr 06 '15 06:04 zyqhi

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.

zk-phi avatar Apr 06 '15 10:04 zk-phi