|
Karsten Hopp |
846c60 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
846c60 |
Subject: Patch 7.3.280
|
|
Karsten Hopp |
846c60 |
Fcc: outbox
|
|
Karsten Hopp |
846c60 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
846c60 |
Mime-Version: 1.0
|
|
Karsten Hopp |
846c60 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
846c60 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
846c60 |
------------
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
Patch 7.3.280
|
|
Karsten Hopp |
846c60 |
Problem: ":lmake" does not update the quickfix window title.
|
|
Karsten Hopp |
846c60 |
Solution: Update the title. (Lech Lorens)
|
|
Karsten Hopp |
846c60 |
Files: src/quickfix.c, src/testdir/test10.in, src/testdir/test10.ok
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
*** ../vim-7.3.279/src/quickfix.c 2011-08-10 13:21:30.000000000 +0200
|
|
Karsten Hopp |
846c60 |
--- src/quickfix.c 2011-08-10 18:09:19.000000000 +0200
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 126,131 ****
|
|
Karsten Hopp |
846c60 |
--- 126,132 ----
|
|
Karsten Hopp |
846c60 |
static win_T *qf_find_win __ARGS((qf_info_T *qi));
|
|
Karsten Hopp |
846c60 |
static buf_T *qf_find_buf __ARGS((qf_info_T *qi));
|
|
Karsten Hopp |
846c60 |
static void qf_update_buffer __ARGS((qf_info_T *qi));
|
|
Karsten Hopp |
846c60 |
+ static void qf_set_title __ARGS((qf_info_T *qi));
|
|
Karsten Hopp |
846c60 |
static void qf_fill_buffer __ARGS((qf_info_T *qi));
|
|
Karsten Hopp |
846c60 |
#endif
|
|
Karsten Hopp |
846c60 |
static char_u *get_mef_name __ARGS((void));
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 2388,2395 ****
|
|
Karsten Hopp |
846c60 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
|
|
Karsten Hopp |
846c60 |
! set_internal_string_var((char_u *)"w:quickfix_title",
|
|
Karsten Hopp |
846c60 |
! qi->qf_lists[qi->qf_curlist].qf_title);
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
|
|
Karsten Hopp |
846c60 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
846c60 |
--- 2389,2395 ----
|
|
Karsten Hopp |
846c60 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
|
|
Karsten Hopp |
846c60 |
! qf_set_title(qi);
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
|
|
Karsten Hopp |
846c60 |
curwin->w_cursor.col = 0;
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 2526,2531 ****
|
|
Karsten Hopp |
846c60 |
--- 2526,2533 ----
|
|
Karsten Hopp |
846c60 |
qf_info_T *qi;
|
|
Karsten Hopp |
846c60 |
{
|
|
Karsten Hopp |
846c60 |
buf_T *buf;
|
|
Karsten Hopp |
846c60 |
+ win_T *win;
|
|
Karsten Hopp |
846c60 |
+ win_T *curwin_save;
|
|
Karsten Hopp |
846c60 |
aco_save_T aco;
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
/* Check if a buffer for the quickfix list exists. Update it. */
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 2537,2542 ****
|
|
Karsten Hopp |
846c60 |
--- 2539,2554 ----
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
qf_fill_buffer(qi);
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
+ if (qi->qf_lists[qi->qf_curlist].qf_title != NULL
|
|
Karsten Hopp |
846c60 |
+ && (win = qf_find_win(qi)) != NULL)
|
|
Karsten Hopp |
846c60 |
+ {
|
|
Karsten Hopp |
846c60 |
+ curwin_save = curwin;
|
|
Karsten Hopp |
846c60 |
+ curwin = win;
|
|
Karsten Hopp |
846c60 |
+ qf_set_title(qi);
|
|
Karsten Hopp |
846c60 |
+ curwin = curwin_save;
|
|
Karsten Hopp |
846c60 |
+
|
|
Karsten Hopp |
846c60 |
+ }
|
|
Karsten Hopp |
846c60 |
+
|
|
Karsten Hopp |
846c60 |
/* restore curwin/curbuf and a few other things */
|
|
Karsten Hopp |
846c60 |
aucmd_restbuf(&aco;;
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 2544,2549 ****
|
|
Karsten Hopp |
846c60 |
--- 2556,2569 ----
|
|
Karsten Hopp |
846c60 |
}
|
|
Karsten Hopp |
846c60 |
}
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
+ static void
|
|
Karsten Hopp |
846c60 |
+ qf_set_title(qi)
|
|
Karsten Hopp |
846c60 |
+ qf_info_T *qi;
|
|
Karsten Hopp |
846c60 |
+ {
|
|
Karsten Hopp |
846c60 |
+ set_internal_string_var((char_u *)"w:quickfix_title",
|
|
Karsten Hopp |
846c60 |
+ qi->qf_lists[qi->qf_curlist].qf_title);
|
|
Karsten Hopp |
846c60 |
+ }
|
|
Karsten Hopp |
846c60 |
+
|
|
Karsten Hopp |
846c60 |
/*
|
|
Karsten Hopp |
846c60 |
* Fill current buffer with quickfix errors, replacing any previous contents.
|
|
Karsten Hopp |
846c60 |
* curbuf must be the quickfix buffer!
|
|
Karsten Hopp |
846c60 |
*** ../vim-7.3.279/src/testdir/test10.in 2011-08-10 13:21:30.000000000 +0200
|
|
Karsten Hopp |
846c60 |
--- src/testdir/test10.in 2011-08-10 18:28:31.000000000 +0200
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 5,13 ****
|
|
Karsten Hopp |
846c60 |
:" Also test a BOM is ignored.
|
|
Karsten Hopp |
846c60 |
:so mbyte.vim
|
|
Karsten Hopp |
846c60 |
:set encoding=utf-8
|
|
Karsten Hopp |
846c60 |
! :/start of errorfile/,/end of errorfile/w! Xerrorfile
|
|
Karsten Hopp |
846c60 |
:/start of testfile/,/end of testfile/w! Xtestfile
|
|
Karsten Hopp |
846c60 |
! :cf Xerrorfile
|
|
Karsten Hopp |
846c60 |
rA
|
|
Karsten Hopp |
846c60 |
:cn
|
|
Karsten Hopp |
846c60 |
rB
|
|
Karsten Hopp |
846c60 |
--- 5,20 ----
|
|
Karsten Hopp |
846c60 |
:" Also test a BOM is ignored.
|
|
Karsten Hopp |
846c60 |
:so mbyte.vim
|
|
Karsten Hopp |
846c60 |
:set encoding=utf-8
|
|
Karsten Hopp |
846c60 |
! :7/start of errorfile/,/end of errorfile/w! Xerrorfile1
|
|
Karsten Hopp |
846c60 |
! :7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
|
|
Karsten Hopp |
846c60 |
:/start of testfile/,/end of testfile/w! Xtestfile
|
|
Karsten Hopp |
846c60 |
! :cf Xerrorfile2
|
|
Karsten Hopp |
846c60 |
! :clast
|
|
Karsten Hopp |
846c60 |
! :copen
|
|
Karsten Hopp |
846c60 |
! :let a=w:quickfix_title
|
|
Karsten Hopp |
846c60 |
! :wincmd p
|
|
Karsten Hopp |
846c60 |
! gR?=a
?
|
|
Karsten Hopp |
846c60 |
! :cf Xerrorfile1
|
|
Karsten Hopp |
846c60 |
rA
|
|
Karsten Hopp |
846c60 |
:cn
|
|
Karsten Hopp |
846c60 |
rB
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 17,22 ****
|
|
Karsten Hopp |
846c60 |
--- 24,34 ----
|
|
Karsten Hopp |
846c60 |
rD
|
|
Karsten Hopp |
846c60 |
:cn
|
|
Karsten Hopp |
846c60 |
rE
|
|
Karsten Hopp |
846c60 |
+ :cn
|
|
Karsten Hopp |
846c60 |
+ :wincmd w
|
|
Karsten Hopp |
846c60 |
+ :let a=w:quickfix_title
|
|
Karsten Hopp |
846c60 |
+ :wincmd p
|
|
Karsten Hopp |
846c60 |
+ gR?=a
?
|
|
Karsten Hopp |
846c60 |
:w! test.out " Write contents of this file
|
|
Karsten Hopp |
846c60 |
:qa!
|
|
Karsten Hopp |
846c60 |
ENDTEST
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 33,38 ****
|
|
Karsten Hopp |
846c60 |
--- 45,52 ----
|
|
Karsten Hopp |
846c60 |
"Xtestfile", linenr 19: yet another problem
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
Does anyone know what is the problem and how to correction it?
|
|
Karsten Hopp |
846c60 |
+ "Xtestfile", line 21 col 9: What is the title of the quickfix window?
|
|
Karsten Hopp |
846c60 |
+ "Xtestfile", line 22 col 9: What is the title of the quickfix window?
|
|
Karsten Hopp |
846c60 |
end of errorfile
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
start of testfile
|
|
Karsten Hopp |
846c60 |
*** ../vim-7.3.279/src/testdir/test10.ok 2010-08-15 21:57:29.000000000 +0200
|
|
Karsten Hopp |
846c60 |
--- src/testdir/test10.ok 2011-08-10 18:03:53.000000000 +0200
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 18,23 ****
|
|
Karsten Hopp |
846c60 |
line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
Eine 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
! line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
! line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
end of testfile
|
|
Karsten Hopp |
846c60 |
--- 18,23 ----
|
|
Karsten Hopp |
846c60 |
line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
Eine 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
! line 21 :cf Xerrorfile1xxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
! line 22 :cf Xerrorfile2xxxxxxxxxxxxxxx
|
|
Karsten Hopp |
846c60 |
end of testfile
|
|
Karsten Hopp |
846c60 |
*** ../vim-7.3.279/src/version.c 2011-08-10 17:44:41.000000000 +0200
|
|
Karsten Hopp |
846c60 |
--- src/version.c 2011-08-10 18:35:52.000000000 +0200
|
|
Karsten Hopp |
846c60 |
***************
|
|
Karsten Hopp |
846c60 |
*** 711,712 ****
|
|
Karsten Hopp |
846c60 |
--- 711,714 ----
|
|
Karsten Hopp |
846c60 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
846c60 |
+ /**/
|
|
Karsten Hopp |
846c60 |
+ 280,
|
|
Karsten Hopp |
846c60 |
/**/
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
--
|
|
Karsten Hopp |
846c60 |
"When I die, I want a tombstone that says "GAME OVER" - Ton Richters
|
|
Karsten Hopp |
846c60 |
|
|
Karsten Hopp |
846c60 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
846c60 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
846c60 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
846c60 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|