[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tweak: optimized size adjustment of titlebar content
From: |
Benno Schulenberg |
Subject: |
Re: [PATCH] tweak: optimized size adjustment of titlebar content |
Date: |
Mon, 4 Jan 2021 14:34:56 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Op 03-01-2021 om 13:56 schreef ObeliX:
> when content of titlebar is to large for it, data fields are dropped.
> when the side spaces are getting removed, no offset is calculated
> anymore and remaining data fields (prefix & path in particular) suddenly
> are displayed left-aligned, instead of being centered.
That is intentional. I like it better that way.
> while this is not very noticeable in edit mode, it is a bit awkward in
> other modes - like in the browser.
I don't find it awkward. It happens only when there are less than
four spaces left in total.
> + else if (ISSET(STATEFLAGS)) {
> + statelen = 5; // IMLRS
> + if (openfile->modified)
> + pathlen = breadth(path) + 2; // _*
This is undesired behavior. When the buffer gets modified, only the
asterisk or the word "Modified" should appear in the title bar, and
*nothing* else should change. That's why the space for the asterisk
or the word "Modified" are reserved up front.
Benno
signature.asc
Description: OpenPGP digital signature