-
Notifications
You must be signed in to change notification settings - Fork 28
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
Weird wrong calculated width #48
Comments
Strange, and unfortunately I can't replicate it. What OS and Emacn version are you using? The fact that What happens if you build a small pause into
Perhaps it takes a few moments for the UI to catch up... |
yes, It works correctly with a tiny pause. After reading the document, I suggest the following code to fix this: ...
(redisplay)
(setq visual-fill-column-width (writeroom--calculate-width)
... Of course, you can put |
Honestly, I'm a little hesitant to add If people advise me against adding But let's first wait and see what the mailing list says. |
I received some answers to my questions, but I haven't had time to go into them yet. My suggestion would be to add the |
got it, thx |
Enabling v-f-c-mode in `writeroom--enable` can cause a race condition between the WM enabling fullscreen and `writeroom-mode` calculating the width of the text area when `writeroom-mode-width` is set to a fractional value. See Github issue #48.
I pushed a commit to the devel branch that hopefully fixes this. The cause of the problem is simply a race condition between the WM enabling full screen and Emacs. The fix involves calculating the width of the text area in the hook Could you try the devel branch and see if it solves the issue for you? |
I just found that my proposed solution causes an annoying bug if a user doesn't actually activate full screen, so I'm gonna have to try and think of something else... |
I seem to be experiencing this issue too now. Does the |
With |
Thanks for the update. Any way I can help?
…
On Mar 4, 2020, at 4:12 PM, Joost Kremers ***@***.***> wrote:
With redisplay, the chances of getting a correct result are better, but the underlying problem isn't solved, so I haven't adopted it. I've been meaning to look for a better solution but never got round to it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I only have writeroom-mode installed using use-package
Steps:
C-c w
The text was updated successfully, but these errors were encountered: