diff options
author | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
commit | 95195f52584565483bf9850840f6d81cd88bf9b2 (patch) | |
tree | 440e88b83f3d9085e3c9ab5b8931106aa12e6905 /cmd-load-buffer.c | |
parent | a70762c9b50e9d9249fa9a56233c0df4129c82fc (diff) |
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 'cmd-load-buffer.c')
-rw-r--r-- | cmd-load-buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-load-buffer.c b/cmd-load-buffer.c index 785a7011..3a26db39 100644 --- a/cmd-load-buffer.c +++ b/cmd-load-buffer.c @@ -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; |