=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-save-buffer.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -r1.34 -r1.35 --- src/usr.bin/tmux/cmd-save-buffer.c 2015/11/14 09:41:06 1.34 +++ src/usr.bin/tmux/cmd-save-buffer.c 2015/12/13 14:32:38 1.35 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-save-buffer.c,v 1.34 2015/11/14 09:41:06 nicm Exp $ */ +/* $OpenBSD: cmd-save-buffer.c,v 1.35 2015/12/13 14:32:38 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha @@ -94,7 +94,7 @@ if (c != NULL && c->session == NULL) cwd = c->cwd; - else if ((s = cmd_find_current(cmdq)) != NULL) + else if ((s = c->session) != NULL) cwd = s->cwd; else cwd = ".";