Yegappan wrote:

> On Tue, Jul 19, 2016 at 8:47 AM, Yegappan Lakshmanan
> <[email protected]> wrote:
> > Hi,
> >
> > On Mon, Jul 18, 2016 at 5:21 PM, Yegappan Lakshmanan
> > <[email protected]> wrote:
> >> Hi,
> >>
> >> When a buffer is modified (lines are added/removed), the line numbers
> >> in the quickfix list are updated to reflect the new line numbers
> >> using the qf_mark_adjust() function.
> >>
> >> This functionality is broken with the recent changes made to optimize
> >> this update (curbuf->b_has_qf_entry). This happens when a quickfix list
> >> and an empty location list are used. The qf_mark_adjust() function sets
> >> the b_has_qf_entry flag to FALSE if a quickfix entry is not found. But
> >> this function is called for both a quickfix list and the location list
> >> to adjust the line numbers. If any one of the list is empty, then this
> >> flag will be set to FALSE. After this, further modifications to the
> >> buffer will not update the line numbers. Should we use two separate
> >> flags (one for the quickfix list and the other for the location list?)
> >
> 
> The attached patch fixes this problem. I have also updated the tests
> to detect this problem.

Thanks!

-- 
ARTHUR:  Be quiet!
DENNIS:  Well you can't expect to wield supreme executive power just 'cause
         some watery tart threw a sword at you!
ARTHUR:  Shut up!
DENNIS:  I mean, if I went around sayin' I was an empereror just because some
         moistened bint had lobbed a scimitar at me they'd put me away!
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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