mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Sync OpenBSD patchset 602:
Don't return the root cell if the string doesn't match.
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: layout-string.c,v 1.1 2009-12-10 16:52:58 tcunha Exp $ */
 | 
			
		||||
/* $Id: layout-string.c,v 1.2 2010-01-08 16:25:50 tcunha Exp $ */
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
			
		||||
@@ -42,7 +42,9 @@ struct layout_cell *layout_find_bottomright(struct layout_cell *);
 | 
			
		||||
struct layout_cell *
 | 
			
		||||
layout_find_string(struct window *w, const char *s)
 | 
			
		||||
{
 | 
			
		||||
	struct layout_cell	*lc = w->layout_root;
 | 
			
		||||
	struct layout_cell	*lc;
 | 
			
		||||
 | 
			
		||||
	lc = NULL;
 | 
			
		||||
 | 
			
		||||
	if (strcasecmp(s, "top") == 0)
 | 
			
		||||
		lc = layout_find_top(lc);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user