Breakindent patch and linebreak

25 views
Skip to first unread message

Tobia Conforto

unread,
Nov 24, 2009, 12:44:12 PM11/24/09
to vim...@googlegroups.com, eud...@arcig.cz
Hello

I applied Václav Šmilauer's 2007 breakindent patch to vim trunk. After a minimal amount of tweaking I got it to compile (see attached patch), but there is a weird bug when breakindent and linebreak are both set.

The bug is: after the first soft-wrap, the text seems to "backwrap" to the end of the previous line, more and more so as the number of soft-wraps increases.

It's very apparent in the attached screenshot. In it, the second paragraph starts with a space, the third with two spaces, and so on. This is to show that the amount of "backwrapping" depends on the amount of indenting that breakindent is supposed to preserve (and not on the work of linebreak, or anything else.)

If any Vim wizard has the time to look into it, I would appreciate it.

-Tobia

breakindent-trunk.diff
bri-bug.png

Peter Odding

unread,
Nov 24, 2009, 1:06:28 PM11/24/09
to vim...@googlegroups.com
I used the breakindent patch for a few months before reverting to Vim's
regular behavior because of the bug described by Tobia Conforto and
another one that seems to be related: On the second and later screen
lines of a wrapped physical line that displays the "backwrap" bug, the
displayed position of the text cursor is off by as many characters as
are "backwrapped" on the previous virtual lines. It's a shame because I
rather liked the goal of the breakindent patch :-(.

- Peter Odding

Ingo Karkat

unread,
Nov 25, 2009, 10:57:24 AM11/25/09
to vim...@googlegroups.com

I had experienced exactly the same problems when checking out the vim_extended
Git repository a couple of months ago, but thought it was caused either by the
interaction of different experimental patches in that repository, or by my
peculiar system.

Is Václav Šmilauer, the patch author, reading this list? Please confirm this
(rather obvious) bug and whether you plan to fix it. I would really love (and
re-try) this feature; it would be nice if it could make it into the next Vim
release.

-- cheers, ingo

Tom Link

unread,
Nov 26, 2009, 1:37:57 PM11/26/09
to vim_dev

> I applied Václav ¿milauer's 2007 breakindent patch to vim trunk. After a minimal amount of tweaking I got it to compile (see attached patch), but there is a weird bug when breakindent and linebreak are both set.

I cannot verify this problem but I stopped patching vim at 7.2-79
because I noticed that a patch failed to be applied when the
breakindent patch was included. Which version do you use? Maybe a
patch introduced some sort of inconsistency?

I personally really wish this patch/feature were included in vim. I
personally haven't had any problems with it since I first applied it
-- shortly after 7.2 was released.

Regards,
Thomas.

Reply all
Reply to author
Forward
0 new messages