ChangedPerformance improvements.
ChangedInstead of calling the segment vc it is git now.FixedThe Git branch was not updating in dired and magit. Trying to update the branch and state more often to update after switching branch more often (it is still not guaranteed to be immediately).
FixedVc-branch for buffers without filename has to be limited to certain major-modes. Will update the list if I see more modes that have to be added. The reason is that default-directory is not reliable to get the current buffer directory name. Inside dired and magit-status is will be correct most of the time so this is okay for me.
AddedMake vc-branch also work in Dired and Magit (if using Git). Changed the function to get the branch and added the segment also to the minimal line, as Magit status is derived from special-mode.FixedFixed some compiler warnings.
FixedVertical Space when segments get truncated. Just added vertical space in the default segments accordingly.
FixedFixed tests and fixed linting errors.ChangedSimplified...--get-symbol, gets called with variable name directly now, now need forintern-soft.Changed...--vc-branch-getwas brittle if for some reason thevc-modewould not be of the right length.ChangedSome little optimizations and fixes.Changedwinum-auto-setup-modelineis disabled when activating the modeline instead of each time the segment ist recalculated (inefficient).FixedIf the text in the modeline is too long, it gets truncated and tries to be sort of intelligent. For this I added a new segment:left-important. This segment has the highest priority and is truncated in the very end if needed.:leftist the first segment to be truncated if needed followed by:right.AddedIf the scroll bar is enabled it is also taken into account when calculating the alignment of the right segment.FixedAligning withfringes-outside-marginsset tonilwas not working correctly.ChangedSnapshot Emacs version using continue-on-error: true now.AddedLine and column number segments.FixedAligning to the right is now pixel perfect.AddedTest forlordar-mode-line-segments--buffer-name-invalidate-cache.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Type of changes:
Addedfor new features.Changedfor changes in existing functionality.Deprecatedfor soon-to-be removed features.Removedfor now removed features.Fixedfor any bug fixes.Securityin case of vulnerabilities.