|
Karsten Hopp |
e01033 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
e01033 |
Subject: Patch 7.4.718
|
|
Karsten Hopp |
e01033 |
Fcc: outbox
|
|
Karsten Hopp |
e01033 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
e01033 |
Mime-Version: 1.0
|
|
Karsten Hopp |
e01033 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
e01033 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
e01033 |
------------
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
Patch 7.4.718
|
|
Karsten Hopp |
e01033 |
Problem: Autocommands triggered by quickfix cannot get the current title
|
|
Karsten Hopp |
e01033 |
value.
|
|
Karsten Hopp |
e01033 |
Solution: Set w:quickfix_title earlier. (Yannick)
|
|
Karsten Hopp |
e01033 |
Also move the check for a title into the function.
|
|
Karsten Hopp |
e01033 |
Files: src/quickfix.c
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
*** ../vim-7.4.717/src/quickfix.c 2015-03-31 13:33:00.801524871 +0200
|
|
Karsten Hopp |
e01033 |
--- src/quickfix.c 2015-05-04 11:51:56.583831852 +0200
|
|
Karsten Hopp |
e01033 |
***************
|
|
Karsten Hopp |
e01033 |
*** 2452,2465 ****
|
|
Karsten Hopp |
e01033 |
prevwin = win;
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
/*
|
|
Karsten Hopp |
e01033 |
* Fill the buffer with the quickfix list.
|
|
Karsten Hopp |
e01033 |
*/
|
|
Karsten Hopp |
e01033 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
- if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
|
|
Karsten Hopp |
e01033 |
- qf_set_title_var(qi);
|
|
Karsten Hopp |
e01033 |
-
|
|
Karsten Hopp |
e01033 |
curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
|
|
Karsten Hopp |
e01033 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
e01033 |
check_cursor();
|
|
Karsten Hopp |
e01033 |
--- 2452,2464 ----
|
|
Karsten Hopp |
e01033 |
prevwin = win;
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
+ qf_set_title_var(qi);
|
|
Karsten Hopp |
e01033 |
+
|
|
Karsten Hopp |
e01033 |
/*
|
|
Karsten Hopp |
e01033 |
* Fill the buffer with the quickfix list.
|
|
Karsten Hopp |
e01033 |
*/
|
|
Karsten Hopp |
e01033 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
|
|
Karsten Hopp |
e01033 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
e01033 |
check_cursor();
|
|
Karsten Hopp |
e01033 |
***************
|
|
Karsten Hopp |
e01033 |
*** 2608,2615 ****
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
! if (qi->qf_lists[qi->qf_curlist].qf_title != NULL
|
|
Karsten Hopp |
e01033 |
! && (win = qf_find_win(qi)) != NULL)
|
|
Karsten Hopp |
e01033 |
{
|
|
Karsten Hopp |
e01033 |
curwin_save = curwin;
|
|
Karsten Hopp |
e01033 |
curwin = win;
|
|
Karsten Hopp |
e01033 |
--- 2607,2613 ----
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
! if ((win = qf_find_win(qi)) != NULL)
|
|
Karsten Hopp |
e01033 |
{
|
|
Karsten Hopp |
e01033 |
curwin_save = curwin;
|
|
Karsten Hopp |
e01033 |
curwin = win;
|
|
Karsten Hopp |
e01033 |
***************
|
|
Karsten Hopp |
e01033 |
*** 2625,2635 ****
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
static void
|
|
Karsten Hopp |
e01033 |
qf_set_title_var(qi)
|
|
Karsten Hopp |
e01033 |
qf_info_T *qi;
|
|
Karsten Hopp |
e01033 |
{
|
|
Karsten Hopp |
e01033 |
! set_internal_string_var((char_u *)"w:quickfix_title",
|
|
Karsten Hopp |
e01033 |
qi->qf_lists[qi->qf_curlist].qf_title);
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
--- 2623,2637 ----
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
+ /*
|
|
Karsten Hopp |
e01033 |
+ * Set "w:quickfix_title" if "qi" has a title.
|
|
Karsten Hopp |
e01033 |
+ */
|
|
Karsten Hopp |
e01033 |
static void
|
|
Karsten Hopp |
e01033 |
qf_set_title_var(qi)
|
|
Karsten Hopp |
e01033 |
qf_info_T *qi;
|
|
Karsten Hopp |
e01033 |
{
|
|
Karsten Hopp |
e01033 |
! if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
|
|
Karsten Hopp |
e01033 |
! set_internal_string_var((char_u *)"w:quickfix_title",
|
|
Karsten Hopp |
e01033 |
qi->qf_lists[qi->qf_curlist].qf_title);
|
|
Karsten Hopp |
e01033 |
}
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
*** ../vim-7.4.717/src/version.c 2015-05-04 11:10:21.543941803 +0200
|
|
Karsten Hopp |
e01033 |
--- src/version.c 2015-05-04 11:53:05.711053186 +0200
|
|
Karsten Hopp |
e01033 |
***************
|
|
Karsten Hopp |
e01033 |
*** 743,744 ****
|
|
Karsten Hopp |
e01033 |
--- 743,746 ----
|
|
Karsten Hopp |
e01033 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
e01033 |
+ /**/
|
|
Karsten Hopp |
e01033 |
+ 718,
|
|
Karsten Hopp |
e01033 |
/**/
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
--
|
|
Karsten Hopp |
e01033 |
Don't Panic!
|
|
Karsten Hopp |
e01033 |
-- The Hitchhiker's Guide to the Galaxy
|
|
Karsten Hopp |
e01033 |
|
|
Karsten Hopp |
e01033 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
e01033 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
e01033 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
e01033 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|