mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Fix calls to find_matches, which expects a list of needles
Fixes https://github.com/joelthelion/autojump/issues/261
This commit is contained in:
		
							parent
							
								
									681068a2bc
								
							
						
					
					
						commit
						59d1e1fd9d
					
				@ -208,14 +208,14 @@ def handle_tab_completion(needle, entries):
 | 
				
			|||||||
        get_ith_path = lambda i, iterable: last(take(i, iterable)).path
 | 
					        get_ith_path = lambda i, iterable: last(take(i, iterable)).path
 | 
				
			||||||
        print_local(get_ith_path(
 | 
					        print_local(get_ith_path(
 | 
				
			||||||
            tab_index,
 | 
					            tab_index,
 | 
				
			||||||
            find_matches(entries, tab_needle, check_entries=False)))
 | 
					            find_matches(entries, [tab_needle], check_entries=False)))
 | 
				
			||||||
    elif tab_needle:
 | 
					    elif tab_needle:
 | 
				
			||||||
        # found partial tab completion entry
 | 
					        # found partial tab completion entry
 | 
				
			||||||
        print_tab_menu(
 | 
					        print_tab_menu(
 | 
				
			||||||
                tab_needle,
 | 
					                tab_needle,
 | 
				
			||||||
                take(TAB_ENTRIES_COUNT, find_matches(
 | 
					                take(TAB_ENTRIES_COUNT, find_matches(
 | 
				
			||||||
                    entries,
 | 
					                    entries,
 | 
				
			||||||
                    tab_needle,
 | 
					                    [tab_needle],
 | 
				
			||||||
                    check_entries=False)),
 | 
					                    check_entries=False)),
 | 
				
			||||||
                TAB_SEPARATOR)
 | 
					                TAB_SEPARATOR)
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
@ -223,7 +223,7 @@ def handle_tab_completion(needle, entries):
 | 
				
			|||||||
                needle,
 | 
					                needle,
 | 
				
			||||||
                take(TAB_ENTRIES_COUNT, find_matches(
 | 
					                take(TAB_ENTRIES_COUNT, find_matches(
 | 
				
			||||||
                    entries,
 | 
					                    entries,
 | 
				
			||||||
                    needle,
 | 
					                    [needle],
 | 
				
			||||||
                    check_entries=False)),
 | 
					                    check_entries=False)),
 | 
				
			||||||
                TAB_SEPARATOR)
 | 
					                TAB_SEPARATOR)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user