mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Fix regression with j foo__
				
					
				
			With `j foo__` the first index is assumed now again. Fixes https://github.com/joelthelion/autojump/issues/271
This commit is contained in:
		
							parent
							
								
									2f26642e7a
								
							
						
					
					
						commit
						27a01662a5
					
				| @ -390,6 +390,11 @@ def main(args):  # noqa | |||||||
|         tab_needle, tab_index, tab_path = \ |         tab_needle, tab_index, tab_path = \ | ||||||
|             get_tab_entry_info(first(needles), TAB_SEPARATOR) |             get_tab_entry_info(first(needles), TAB_SEPARATOR) | ||||||
| 
 | 
 | ||||||
|  |         # Handle `j foo__`, assuming first index. | ||||||
|  |         if not tab_path and not tab_index \ | ||||||
|  |                 and tab_needle and needles[0] == tab_needle + TAB_SEPARATOR: | ||||||
|  |             tab_index = 1 | ||||||
|  | 
 | ||||||
|         if tab_path: |         if tab_path: | ||||||
|             print_local(tab_path) |             print_local(tab_path) | ||||||
|         elif tab_index: |         elif tab_index: | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user