is_selected argument to get_text can just be NULL
This commit is contained in:
		
							parent
							
								
									564b21c2dc
								
							
						
					
					
						commit
						8a4e9f7762
					
				@ -31,10 +31,6 @@ typedef struct search_panel_info {
 | 
			
		||||
    enum overlay_mode mode;
 | 
			
		||||
} search_panel_info;
 | 
			
		||||
 | 
			
		||||
static gboolean always_selected() {
 | 
			
		||||
    return TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static gboolean add_to_list_store(char *key,
 | 
			
		||||
                                  __attribute__((unused)) void *value,
 | 
			
		||||
                                  GtkListStore *store) {
 | 
			
		||||
@ -49,8 +45,7 @@ static GtkTreeModel *create_completion_model(VteTerminal *vte) {
 | 
			
		||||
 | 
			
		||||
    // TODO: get the full buffer
 | 
			
		||||
    gchar *content = vte_terminal_get_text(vte,
 | 
			
		||||
                                           (VteSelectionFunc)always_selected,
 | 
			
		||||
                                           NULL, NULL);
 | 
			
		||||
                                           NULL, NULL, NULL);
 | 
			
		||||
 | 
			
		||||
    if (!content) {
 | 
			
		||||
        g_printerr("no content");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user