Christian Brabandt <[email protected]> wrote:

> Hi Dominique!
>
> On Mi, 24 Dez 2014, Dominique Pellé wrote:
>
>> Hi
>>
>> I see a bug with Vim-7.4.460. Steps to reproduce:
>>
>> $ vim -u NONE -c 'set showbreak=: columns=95' bug-vim.txt
>>
>> ... where "bug-vim.txt" is the attached file. Then in
>> command mode, press A to append text at the end
>> of the line.
>>
>> Observe that cursor is positioned before the end of
>> line (bug!). Appending characters appends at the end
>> of line, but cursor remains at the wrong position
>> before the end of line.
>>
>> Bug only happens with columns=95 with this file, which
>> corresponds to  having a tab displayed at the beginning
>> of a wrapped line.
>
> Can you try the attached patch?
>
> Kind regards,
> Christian

Hi Christian

You're quick!  ... but too quick :-)

Your patch contains changes in getchar.c and ui.c
which seem unrelated to this issue. Right?

Part of your patch in search.c is also already present
in Vim-5.4.560 (it was part of patch 7.4.547).

The change in screen.c looks like the relevant
piece.  But it does not work.  It changes the
behavior, but the cursor still appears before
the end of line.  Did it work for you?

I hope to find time later to try fixing it. This
piece of code in screen.c is a bit hairy though.

Regards
Dominique

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui