static void savecurctx(settings *curcfg, char *path, char *curname, int r /* next context num */)
{
settings cfg = *curcfg;
+ bool copymode = cfg.copymode ? TRUE : FALSE;
#ifdef DIR_LIMITED_COPY
g_crc = 0;
g_ctx[r].c_cfg.runplugin = 0;
}
+ /* Continue copy mode */
+ cfg.copymode = copymode;
cfg.curctx = r;
*curcfg = cfg;
}
return;
case SEL_QUITCTX:
- fd = cfg.curctx;
+ fd = cfg.curctx; /* fd used as tmp var */
for (r = (fd + 1) & ~CTX_MAX;
(r != fd) && !g_ctx[r].c_cfg.ctxactive;
r = ((r + 1) & ~CTX_MAX)) {
};
if (r != fd) {
+ bool copymode = cfg.copymode ? TRUE : FALSE;
+
g_ctx[fd].c_cfg.ctxactive = 0;
/* Switch to next active context */
cfg = g_ctx[r].c_cfg;
+ /* Continue copy mode */
+ cfg.copymode = copymode;
cfg.curctx = r;
setdirwatch();
goto begin;