1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: ":lmake" does not update the quickfix window title.
12 Solution: Update the title. (Lech Lorens)
13 Files: src/quickfix.c, src/testdir/test10.in, src/testdir/test10.ok
16 *** ../vim-7.3.279/src/quickfix.c 2011-08-10 13:21:30.000000000 +0200
17 --- src/quickfix.c 2011-08-10 18:09:19.000000000 +0200
21 static win_T *qf_find_win __ARGS((qf_info_T *qi));
22 static buf_T *qf_find_buf __ARGS((qf_info_T *qi));
23 static void qf_update_buffer __ARGS((qf_info_T *qi));
24 + static void qf_set_title __ARGS((qf_info_T *qi));
25 static void qf_fill_buffer __ARGS((qf_info_T *qi));
27 static char_u *get_mef_name __ARGS((void));
32 if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
33 ! set_internal_string_var((char_u *)"w:quickfix_title",
34 ! qi->qf_lists[qi->qf_curlist].qf_title);
36 curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
37 curwin->w_cursor.col = 0;
41 if (qi->qf_lists[qi->qf_curlist].qf_title != NULL)
44 curwin->w_cursor.lnum = qi->qf_lists[qi->qf_curlist].qf_index;
45 curwin->w_cursor.col = 0;
56 /* Check if a buffer for the quickfix list exists. Update it. */
63 + if (qi->qf_lists[qi->qf_curlist].qf_title != NULL
64 + && (win = qf_find_win(qi)) != NULL)
66 + curwin_save = curwin;
69 + curwin = curwin_save;
73 /* restore curwin/curbuf and a few other things */
86 + set_internal_string_var((char_u *)"w:quickfix_title",
87 + qi->qf_lists[qi->qf_curlist].qf_title);
91 * Fill current buffer with quickfix errors, replacing any previous contents.
92 * curbuf must be the quickfix buffer!
93 *** ../vim-7.3.279/src/testdir/test10.in 2011-08-10 13:21:30.000000000 +0200
94 --- src/testdir/test10.in 2011-08-10 18:28:31.000000000 +0200
97 :" Also test a BOM is ignored.
100 ! :/start of errorfile/,/end of errorfile/w! Xerrorfile
101 :/start of testfile/,/end of testfile/w! Xtestfile
107 :" Also test a BOM is ignored.
110 ! :7/start of errorfile/,/end of errorfile/w! Xerrorfile1
111 ! :7/start of errorfile/,/end of errorfile/-1w! Xerrorfile2
112 :/start of testfile/,/end of testfile/w! Xtestfile
116 ! :let a=w:quickfix_title
131 + :let a=w:quickfix_title
134 :w! test.out " Write contents of this file
140 "Xtestfile", linenr 19: yet another problem
142 Does anyone know what is the problem and how to correction it?
143 + "Xtestfile", line 21 col 9: What is the title of the quickfix window?
144 + "Xtestfile", line 22 col 9: What is the title of the quickfix window?
148 *** ../vim-7.3.279/src/testdir/test10.ok 2010-08-15 21:57:29.000000000 +0200
149 --- src/testdir/test10.ok 2011-08-10 18:03:53.000000000 +0200
152 line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
153 Eine 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
154 line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
155 ! line 21 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
156 ! line 22 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
159 line 18 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
160 Eine 19 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
161 line 20 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
162 ! line 21 :cf Xerrorfile1xxxxxxxxxxxxxxx
163 ! line 22 :cf Xerrorfile2xxxxxxxxxxxxxxx
165 *** ../vim-7.3.279/src/version.c 2011-08-10 17:44:41.000000000 +0200
166 --- src/version.c 2011-08-10 18:35:52.000000000 +0200
170 { /* Add new patch number below this line */
176 "When I die, I want a tombstone that says "GAME OVER" - Ton Richters
178 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
179 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
180 \\\ an exciting new programming language -- http://www.Zimbu.org ///
181 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///