mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -870,6 +870,15 @@ mode_tree_key(struct mode_tree_data *mtd, struct client *c, key_code *key,
 | 
			
		||||
	case 'v':
 | 
			
		||||
		mtd->preview = !mtd->preview;
 | 
			
		||||
		mode_tree_build(mtd);
 | 
			
		||||
 | 
			
		||||
		/*
 | 
			
		||||
		 * If the current line would now be off screen now the preview
 | 
			
		||||
		 * is on, reset the the offset to the last visible line.
 | 
			
		||||
		 */
 | 
			
		||||
		if (mtd->preview && mtd->current > mtd->height - 1) {
 | 
			
		||||
			mtd->offset = mtd->current - mtd->height;
 | 
			
		||||
			mtd->current--;
 | 
			
		||||
		}
 | 
			
		||||
		break;
 | 
			
		||||
	}
 | 
			
		||||
	return (0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user