mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 11:18:48 +00:00
Don't return the root cell if the string doesn't match.
This commit is contained in:
parent
526bb6f3e9
commit
ac46e87685
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user