On So, 11 Jan 2015, Christian Brabandt wrote: > Hi Gary! > > On Sa, 10 Jan 2015, Gary Johnson wrote: > > > On 2015-01-10, Christian Brabandt wrote: > > > Hi Roland! > > > > > > On Sa, 10 Jan 2015, Roland Eggner wrote: > > > > > > > On 2015-01-09 Friday at 19:14 +0000 [email protected] wrote: > > > > > Status: New Owner: ---- Labels: Type-Defect Priority-Medium > > > > > > > > > > New issue 312 by [email protected]: word wrapping messed up when > > > > > entering Insert mode with 'c' or 's' > > > > > https://code.google.com/p/vim/issues/detail?id=312 > > > > > > > > > > What steps will reproduce the problem? 1. set linebreak 2. Fill the > > > > > line with words until it wraps, make sure that the first character > > > > > in the wrapped word could still fit on the previous line. 3. Move to > > > > > anywhere on (one of) the continuation lines. 4. Press 's' to enter > > > > > Insert mode. > > > > > > > > > > What is the expected output? What do you see instead? Expected: line > > > > > breaking prior to the cursor location does not change; word > > > > > wrapping remains legible. Actual: line breaks before the cursor are > > > > > recomputed, and do not honor word boundaries any more. > > > > > > > > > > What version of the product are you using? On what operating system? > > > > > Vim 7.4.473 on Ubuntu Linux. For context, vim 7.4.52 on Mint Linux > > > > > does not have this problem. > > > > > > This is probably the same issue as has been reported several weeks > > > > ago. > > > > > > > > Christian Brabandt provided two patches already. Both are on Brams > > > > todo list and not yet included. For your convenience I have attached > > > > my versions updated for 7.4.529. It appears they apply to current tip > > > > 7.4.567 cleanly, just for one hunk I saw an offset message. Please > > > > try and report if they fix your issue. > > > > > > We only need the second patch (the one, that is called "Fix bug with > > > options relativenumbers and linebreak set"), right? > > > > Hi Christian, > > > > I applied what I took to be the second patch at > > https://groups.google.com/forum/#!msg/vim_dev/Bh0Nd321JYE/be9Cfu9DLmcJ, > > the one dated 2014-11-26 and called "Bug with rnu and > > linebreak.patch", to Vim 7.4.567. It does not fix the problem I am > > observing, which I think is the same as reported above. That is, > > after editing a long line of text with 'linebreak' set, the text is > > no longer broken between words but appears as it would > > if 'linebreak' was not set. > > > > In my experiment with your patch, I executed this, > > > > vim -N -u NONE -c 'set linebreak' ~/lorem_ipsum.5p > > > > where ~/lorem_ipsum.5p is five paragraphs of lorem ipsum text. The > > behavior is the same, though, even with a single line that wraps > > only once. When I type s anywhere in a line, all the text in that > > line is immediately re-broken at the right screen edge rather than > > between words. Typing <Esc> leaves the line in that state. Typing > > <Ctrl-L> redraws the screen with the line correctly broken between > > words. > > > > I ran the test with vim in a GNOME Terminal on Fedora 14 Linux. > > Alright, I'll check again. Will post an updated patch later today. > > (I have posted too many patches recently and got lost which one actually > worked and has been applied)
Can you please check with this patch: https://github.com/chrisbra/vim-mq-patches/blob/master/linebreak_bug That should fix all observed problems. Best, Christian -- Treibt's das Hähnchen all zu lange, fällt das Hühnchen von der Stange. -- -- 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.
