On Tue 2-Jan-07 12:57pm -0600, A.J.Mechelynck wrote:

> DervishD wrote:
>>     Hi all, and happy new year!
>> 
>>     I have %B in my status line, but it doesn't work in insert mode,
>> only on normal and visual mode. At first I thought that the status line
>> wasn't being evaluated while in insert mode, but the line and column
>> numbers change correctly, so it *is* being evaluated, it's just that %B
>> doesn't seems to work.
>> 
>>     Any way of working around this problem? Is this a feature?
>> 
>>     Thanks a lot in advance :)
>> 
>>     Raúl Núñez de Arenas Coronado
>> 
>
> I confirm that in Insert/Replace mode %B gives a single digit zero. In Select
> mode it works OK, even in Select (insert) i.e. when triggered by hitting
> shift-arrow in Insert mode.
>
> Even in Insert mode, the display is OK in non-current windows (e.g. clicking a
> status line or using Ctrl-O Ctrl-W w to change windows, gives a correct
> display on the status line of the window which we just left).
>
> IMHO this is a bug.

Perhaps.  It behaves that way (also in 6.4) for both %b and
%B.  In Gvim, the cursor is between 2 characters - so
returning zero for %b and %B seems reasonable.  OTOH,
supporting the bug conclusion, the character position of %c,
%v and %V report the position following the between
character cursor.

-- 
Best regards,
Bill

Reply via email to