On 28-Apr-2014 23:05 +0200, Christian Brabandt wrote:

> On Do, 24 Apr 2014, Ingo Karkat wrote:
> 
>> Hello Vim developers,
>>
>> my plugins' automated test suite found another regression. When
>> reformatting lines with gq{motion}, the start of change mark '[ does not
>> point to the start of the first line [0, lnum, 1, 0] any more, but
>> instead to after the end of the original first line [0, lnum,
>> len(getline(lnum)) + 1, 0].
>> As gq processes entire lines, the start of the change should indeed be
>> at column 1, as it used to.
>>
>> This scriptlet shows the discrepancy:
>>
>>     :call setline(1, ["\t\tO sodales, ludite, vos qui", "attamen consulite 
>> per voster honur. Tua pulchra facies me fay planszer milies"])
>>     :1normal! gqj
>>     :echo getpos("'[") " Should yield [0, 1, 1, 0], but gives [0, 1, 29, 0].
>>
>> Using the attached scriptlet, I've bisected this to the following patch:
>>
>> ,----[ bad change ]----
>> | 7.4.178  the J command does not update '[ and '] marks
>> `----
>>
>> I still see this in the latest 7.4.264 (HUGE build) on Linux/x64.
>>
>> -- regards, ingo
> 
> Please check the following patch. I'll added a new test for this.

Good job (as always)! I can confirm that this (patch 7.4.267) fixes the
problem for me and didn't create any new issues in my plugins' test suite.

-- thanks, ingo

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