Skip to content

update backport from mode-line-right-align-edge in emacs master - #837

Merged
seagle0128 merged 1 commit into
seagle0128:masterfrom
andre0x42:master
Oct 13, 2026
Merged

seagle0128 merged 1 commit into
seagle0128:masterfrom
andre0x42:master

Conversation

@andre0x42

Copy link
Copy Markdown
Contributor

Updating according to mode--line-format-right-align @emacs master.

Now takes into account fringes (the advance the left fringe causes) besides the advance caused by the left-margin.

olivetti with olivetti-style set to t or 'fancy, both of which make use of fringes, will now not send the right part of modeline beyond frame visibility.

As minimal example to reproduce the problem: (set-window-fringes (selected-window) 50 8 nil).

Include logic to cancel advance from left fringe
When left margin is 0 don't move by 1 column.
@seagle0128
seagle0128 merged commit 973ab9f into seagle0128:master Oct 13, 2026
3 of 6 checks passed
@seagle0128

Copy link
Copy Markdown
Owner

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants