Bug: Inconsistency in regard to titlestring and statusline.

Elaboration:

:help titlestring says:

    When this option contains printf-style '%' items, they will
    be expanded according to the rules used for 'statusline'.

However, my ingenuity does not enable me to see how the formatting supported by statusline for '%' can be used to generate the default output of title which is:

    filename [+=-] (path) - VIM

For example, '%m' outputs '[+]' or '[-]' rather than just '+' or '-'; and '%r' outputs '[RO]' (or nothing, if buffer is writable) rather than just '=' (or nothing).

So there is an inconsistency in regard to how the same piece of information is displayed by the default mechanisms in the title and in the statusline.

Perhaps the fix might be that when %m is used in the titlestring, it appears in the title without surrounding square brackets; and when %r is used in the titlestring, it appears as = (or nothing).

Anyway, I noticed the above while trying to ensure that the path in the title always showed up in a canonical form.

--Suresh

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui