|
Karsten Hopp |
aab5e3 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
aab5e3 |
Subject: Patch 7.3.398
|
|
Karsten Hopp |
aab5e3 |
Fcc: outbox
|
|
Karsten Hopp |
aab5e3 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
aab5e3 |
Mime-Version: 1.0
|
|
Karsten Hopp |
aab5e3 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
aab5e3 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
aab5e3 |
------------
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
Patch 7.3.398
|
|
Karsten Hopp |
aab5e3 |
Problem: When creating more than 10 location lists and adding items one by
|
|
Karsten Hopp |
aab5e3 |
one a previous location may be used. (Audrius Kažukauskas)
|
|
Karsten Hopp |
aab5e3 |
Solution: Clear the location list completely when adding the tenth one.
|
|
Karsten Hopp |
aab5e3 |
Files: src/quickfix.c
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
*** ../vim-7.3.397/src/quickfix.c 2012-01-10 16:28:41.000000000 +0100
|
|
Karsten Hopp |
aab5e3 |
--- src/quickfix.c 2012-01-10 16:58:52.000000000 +0100
|
|
Karsten Hopp |
aab5e3 |
***************
|
|
Karsten Hopp |
aab5e3 |
*** 899,906 ****
|
|
Karsten Hopp |
aab5e3 |
}
|
|
Karsten Hopp |
aab5e3 |
else
|
|
Karsten Hopp |
aab5e3 |
qi->qf_curlist = qi->qf_listcount++;
|
|
Karsten Hopp |
aab5e3 |
! qi->qf_lists[qi->qf_curlist].qf_index = 0;
|
|
Karsten Hopp |
aab5e3 |
! qi->qf_lists[qi->qf_curlist].qf_count = 0;
|
|
Karsten Hopp |
aab5e3 |
if (qf_title != NULL)
|
|
Karsten Hopp |
aab5e3 |
{
|
|
Karsten Hopp |
aab5e3 |
char_u *p = alloc((int)STRLEN(qf_title) + 2);
|
|
Karsten Hopp |
aab5e3 |
--- 899,905 ----
|
|
Karsten Hopp |
aab5e3 |
}
|
|
Karsten Hopp |
aab5e3 |
else
|
|
Karsten Hopp |
aab5e3 |
qi->qf_curlist = qi->qf_listcount++;
|
|
Karsten Hopp |
aab5e3 |
! vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T)));
|
|
Karsten Hopp |
aab5e3 |
if (qf_title != NULL)
|
|
Karsten Hopp |
aab5e3 |
{
|
|
Karsten Hopp |
aab5e3 |
char_u *p = alloc((int)STRLEN(qf_title) + 2);
|
|
Karsten Hopp |
aab5e3 |
***************
|
|
Karsten Hopp |
aab5e3 |
*** 909,916 ****
|
|
Karsten Hopp |
aab5e3 |
if (p != NULL)
|
|
Karsten Hopp |
aab5e3 |
sprintf((char *)p, ":%s", (char *)qf_title);
|
|
Karsten Hopp |
aab5e3 |
}
|
|
Karsten Hopp |
aab5e3 |
- else
|
|
Karsten Hopp |
aab5e3 |
- qi->qf_lists[qi->qf_curlist].qf_title = NULL;
|
|
Karsten Hopp |
aab5e3 |
}
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
/*
|
|
Karsten Hopp |
aab5e3 |
--- 908,913 ----
|
|
Karsten Hopp |
aab5e3 |
*** ../vim-7.3.397/src/version.c 2012-01-10 16:28:41.000000000 +0100
|
|
Karsten Hopp |
aab5e3 |
--- src/version.c 2012-01-10 17:13:09.000000000 +0100
|
|
Karsten Hopp |
aab5e3 |
***************
|
|
Karsten Hopp |
aab5e3 |
*** 716,717 ****
|
|
Karsten Hopp |
aab5e3 |
--- 716,719 ----
|
|
Karsten Hopp |
aab5e3 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
aab5e3 |
+ /**/
|
|
Karsten Hopp |
aab5e3 |
+ 398,
|
|
Karsten Hopp |
aab5e3 |
/**/
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
--
|
|
Karsten Hopp |
aab5e3 |
Why don't cannibals eat clowns?
|
|
Karsten Hopp |
aab5e3 |
Because they taste funny.
|
|
Karsten Hopp |
aab5e3 |
|
|
Karsten Hopp |
aab5e3 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
aab5e3 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
aab5e3 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
aab5e3 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|