Hi Bram!

On Di, 15 Nov 2016, Bram Moolenaar wrote:

> 
> Christian Brabandt wrote:
> 
> > Bram,
> > the breakindent feature has a bug, if an overlong line is written on the 
> > screen and the first chars are skipped. In that case, if the line is 
> > indented, the first visual line also needs to display an indent. If you 
> > move to the last character using $ the cursor will be moved after the 
> > last displayed character. Attached is a patch which fixes the issue.
> > 
> > Also included is a rewrite of the current test_breakindent oldstyle test 
> > to a new style test. That part was harder than I initially thought, 
> > because after having created several tests I saw some failures of 
> > previously successful tests when adding new tests. I think this was 
> > because the caching of the indent kicked in and lead to strange non 
> > reproducible errors.
> > 
> > Another thing to notice is that I added a test for the currently fixed 
> > bug, however it does not fail for older vims, although it does when run 
> > interactively. But after having already spent too much time in 
> > converting the test, I'll just leave it as is, because I don't think it 
> > makes much sense to spend even more time on it.
> 
> Strange that it only fails interactively.  Perhaps it's because Vim
> peeks for input and skips a redraw?  In that case using
> test_disable_char_avail() might help.

Doesn't help unfortunately.

Best,
Christian
-- 
Die Zeit ist ein guter Arzt, aber ein schlechter Kosmetiker.
                -- William Somerset Maugham

-- 
-- 
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