summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-load-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-04-27 16:25:57 +0000
committernicm <nicm@openbsd.org>2015-04-27 16:25:57 +0000
commitf65f2164b1efdb9bfdf8ab5b7ff4ac1b99bfb967 (patch)
tree4fba9767ed0806adc7ebc37adba9f7dc0149b06e /usr.bin/tmux/cmd-load-buffer.c
parentDo not call nd6_purge() before purging the IPv6 addresses of a detached (diff)
downloadwireguard-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-load-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-load-buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-load-buffer.c b/usr.bin/tmux/cmd-load-buffer.c
index dcae4e97916..161c554896b 100644
--- a/usr.bin/tmux/cmd-load-buffer.c
+++ b/usr.bin/tmux/cmd-load-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-load-buffer.c,v 1.31 2014/10/20 22:29:25 nicm Exp $ */
+/* $OpenBSD: cmd-load-buffer.c,v 1.32 2015/04/27 16:25:57 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -72,7 +72,7 @@ cmd_load_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;