underline match
This commit is contained in:
		
							parent
							
								
									c92a4fd624
								
							
						
					
					
						commit
						f32666ef34
					
				@ -158,8 +158,13 @@ drawbar(void) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
drawitem(const char *s, unsigned long col[ColLast]) {
 | 
					drawitem(const char *s, unsigned long col[ColLast]) {
 | 
				
			||||||
 | 
						const char *p;
 | 
				
			||||||
 | 
						unsigned int w = textnw(&dc, text, strlen(text));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	drawbox(&dc, col);
 | 
						drawbox(&dc, col);
 | 
				
			||||||
	drawtext(&dc, s, col);
 | 
						drawtext(&dc, s, col);
 | 
				
			||||||
 | 
						for(p = fstrstr(s, text); *text && (p = fstrstr(p, text)); p++)
 | 
				
			||||||
 | 
							drawline(&dc, textnw(&dc, s, p-s) + dc.h/2 - 1, dc.h-2, w, 1, col);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user