Re: auto save panels setup broken

2016-10-08 Thread Yury V. Zaytsev
On Fri, 7 Oct 2016, Mike wrote: Here's the patch for {setup.[ch], main.c, midnight.c} to fix the restoring of the directory contents of the active panel on startup when "Auto Save Panel Setup" option is enabled. Unless it ends up on the Trac it will surely get buried in the mailing list

Re: auto save panels setup broken

2016-10-07 Thread Mike
Here's the patch for {setup.[ch], main.c, midnight.c} to fix the restoring of the directory contents of the active panel on startup when "Auto Save Panel Setup" option is enabled. See attached 1341 byte gzip: patch01-setup.ch-main.c-midnight.c-auto-save-restore-panel.161007.diff.gz It works

Re: auto save panels setup broken

2016-10-07 Thread Mike
On closer inspection, saving and retrieving this_dir is a simple hack to setup.c, setup.h, and main.c. The real issue is what to do at startup. In midnight.c:create_panels() around line 600, if command line arguments run_param0 and run_param1 are both NULL we assume this_panel (active panel)