diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-03-11 16:01:12 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-03-11 16:01:12 +0000 |
commit | 266e662fae06232b4154f1ac7194ea9e772dc38b (patch) | |
tree | 3d8286b4985656aa3bd84fc436c590f94cb7729d /cmd-find.c | |
parent | 392253f0323a7453a978fc5599f03b2a7abd5c1b (diff) | |
parent | d455da45eb8292185964041f1967a8b0b28c88af (diff) | |
download | rtmux-266e662fae06232b4154f1ac7194ea9e772dc38b.tar.gz rtmux-266e662fae06232b4154f1ac7194ea9e772dc38b.tar.bz2 rtmux-266e662fae06232b4154f1ac7194ea9e772dc38b.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-find.c')
-rw-r--r-- | cmd-find.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -482,8 +482,8 @@ cmd_find_get_window(struct cmd_find_state *fs, const char *window) if (cmd_find_get_window_with_session(fs, window) == 0) return (0); - /* Otherwise try as a session itself. */ - if (cmd_find_get_session(fs, window) == 0) { + /* Try as a session if it looks like a session. */ + if (*window == '$' && cmd_find_get_session(fs, window) == 0) { fs->wl = fs->s->curw; fs->w = fs->wl->window; if (~fs->flags & CMD_FIND_WINDOW_INDEX) @@ -673,8 +673,8 @@ cmd_find_get_pane(struct cmd_find_state *fs, const char *pane) if (cmd_find_get_pane_with_window(fs, pane) == 0) return (0); - /* Otherwise try as a window itself (this will also try as session). */ - if (cmd_find_get_window(fs, pane) == 0) { + /* Try as a window if it looks like a window. */ + if (*pane == '@' && cmd_find_get_window(fs, pane) == 0) { fs->wp = fs->w->active; return (0); } |