summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0169
blob: 8b6702b98a05a65b54f3c95817425c05ef807a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0169
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0169 (after 8.1.0165)
Problem:    Calling message_filtered() a bit too often.
Solution:   Only call message_filtered() when filtering is already false.
Files:	    src/quickfix.c, runtime/doc/quickfix.txt


*** ../vim-8.1.0168/src/quickfix.c	Sun Jul  8 16:50:33 2018
--- src/quickfix.c	Sun Jul  8 18:17:59 2018
***************
*** 3139,3156 ****
  		    sprintf((char *)IObuff, "%2d", i);
  		else
  		    vim_snprintf((char *)IObuff, IOSIZE, "%2d %s",
! 								i, (char *)fname);
  	    }
  
  	    // Support for filtering entries using :filter /pat/ clist
! 	    filter_entry = 1;
  	    if (qfp->qf_module != NULL && *qfp->qf_module != NUL)
  		filter_entry &= message_filtered(qfp->qf_module);
! 	    if (fname != NULL)
  		filter_entry &= message_filtered(fname);
! 	    if (qfp->qf_pattern != NULL)
  		filter_entry &= message_filtered(qfp->qf_pattern);
! 	    filter_entry &= message_filtered(qfp->qf_text);
  	    if (filter_entry)
  		goto next_entry;
  
--- 3139,3159 ----
  		    sprintf((char *)IObuff, "%2d", i);
  		else
  		    vim_snprintf((char *)IObuff, IOSIZE, "%2d %s",
! 							     i, (char *)fname);
  	    }
  
  	    // Support for filtering entries using :filter /pat/ clist
! 	    // Match against the module name, file name, search pattern and
! 	    // text of the entry.
! 	    filter_entry = TRUE;
  	    if (qfp->qf_module != NULL && *qfp->qf_module != NUL)
  		filter_entry &= message_filtered(qfp->qf_module);
! 	    if (filter_entry && fname != NULL)
  		filter_entry &= message_filtered(fname);
! 	    if (filter_entry && qfp->qf_pattern != NULL)
  		filter_entry &= message_filtered(qfp->qf_pattern);
! 	    if (filter_entry)
! 		filter_entry &= message_filtered(qfp->qf_text);
  	    if (filter_entry)
  		goto next_entry;
  
*** ../vim-8.1.0168/runtime/doc/quickfix.txt	Thu May 17 13:42:02 2018
--- runtime/doc/quickfix.txt	Sun Jul  8 18:16:55 2018
***************
*** 298,303 ****
--- 298,307 ----
  			from the last error backwards, -1 being the last error.
  			The 'switchbuf' settings are respected when jumping
  			to a buffer.
+ 			The |:filter| command can be used to display only the
+ 			quickfix entries matching a supplied pattern. The
+ 			pattern is matched against the filename, module name,
+ 			pattern and text of the entry.
  
  :cl[ist] +{count}	List the current and next {count} valid errors.  This
  			is similar to ":clist from from+count", where "from"
***************
*** 1287,1293 ****
  Changing directory
  
  The following uppercase conversion characters specify the type of special
! format strings.  At most one of them may be given as a prefix at the begin
  of a single comma-separated format pattern.
  Some compilers produce messages that consist of directory names that have to
  be prepended to each file name read by %f (example: GNU make).  The following
--- 1291,1297 ----
  Changing directory
  
  The following uppercase conversion characters specify the type of special
! format strings.  At most one of them may be given as a prefix at the beginning
  of a single comma-separated format pattern.
  Some compilers produce messages that consist of directory names that have to
  be prepended to each file name read by %f (example: GNU make).  The following
*** ../vim-8.1.0168/src/version.c	Sun Jul  8 17:57:30 2018
--- src/version.c	Sun Jul  8 18:16:48 2018
***************
*** 791,792 ****
--- 791,794 ----
  {   /* Add new patch number below this line */
+ /**/
+     169,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
211. Your husband leaves you...taking the computer with him and you
     call him crying, and beg him to bring the computer back.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- 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    ///