fix regression: sel_or_clip filename not updated in merge_file() and in save_selection(). Fixed commit `copy between windows: allow to navigate between more than 2 windows`

This commit is contained in:
stefan schippers 2024-03-03 03:17:53 +01:00
parent c07871d4ee
commit 54e446dbc2
2 changed files with 4 additions and 0 deletions

View File

@ -330,6 +330,8 @@ void merge_file(int selection_load, const char ext[])
my_snprintf(name, S(name), "%s/.clipboard.sch", user_conf_dir);
}
my_snprintf(sel_or_clip, S(sel_or_clip), name);
if(is_generator(name)) generator = 1;
if(generator) {

View File

@ -4888,6 +4888,8 @@ void save_selection(int what)
else /* what=2 */
my_snprintf(name, S(name), "%s/%s.sch",user_conf_dir , ".clipboard");
my_snprintf(sel_or_clip, S(sel_or_clip), name);
if(!(fd=fopen(name,"w")))
{
fprintf(errfp, "save_selection(): problems opening file %s \n", name);