diff options
author | 2015-04-27 16:25:57 +0000 | |
---|---|---|
committer | 2015-04-27 16:25:57 +0000 | |
commit | f65f2164b1efdb9bfdf8ab5b7ff4ac1b99bfb967 (patch) | |
tree | 4fba9767ed0806adc7ebc37adba9f7dc0149b06e /usr.bin/tmux/cmd-save-buffer.c | |
parent | Do not call nd6_purge() before purging the IPv6 addresses of a detached (diff) | |
download | wireguard-openbsd-f65f2164b1efdb9bfdf8ab5b7ff4ac1b99bfb967.tar.xz wireguard-openbsd-f65f2164b1efdb9bfdf8ab5b7ff4ac1b99bfb967.zip |
Rewrite of the target resolution internals to be simpler and more
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.
Diffstat (limited to 'usr.bin/tmux/cmd-save-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-save-buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-save-buffer.c b/usr.bin/tmux/cmd-save-buffer.c index d5700e2fb13..c760537e5bf 100644 --- a/usr.bin/tmux/cmd-save-buffer.c +++ b/usr.bin/tmux/cmd-save-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-save-buffer.c,v 1.27 2014/10/20 22:29:25 nicm Exp $ */ +/* $OpenBSD: cmd-save-buffer.c,v 1.28 2015/04/27 16:25:57 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -93,7 +93,7 @@ cmd_save_buffer_exec(struct cmd *self, struct cmd_q *cmdq) if (c != NULL && c->session == NULL) cwd = c->cwd; - else if ((s = cmd_current_session(cmdq, 0)) != NULL) + else if ((s = cmd_find_current(cmdq)) != NULL) cwd = s->cwd; else cwd = AT_FDCWD; |