Andrius
2013-07-01 21:37:28 UTC
Hi Olivier,
when number of entries in find bar gets higher than 15, then the searchlist fails to update when saving the project. The searchlist stays always the same, whatever new entries are entered into find bar.
Closer investigation revealed, that save_config_file() in rcfile.c always counts 15 entries from the bottom of the Glist, while several Glist (searchlist, replacelist) are updated from the top. This causes always save of old entries instead of new ones.
I made some kind of dirty patch that fixes this problem. See attached file. I am not sure if this is the best way to do this (uses identifier matching), however, it works for now.
Please let me know if it is OK to commit it.
Andrius
when number of entries in find bar gets higher than 15, then the searchlist fails to update when saving the project. The searchlist stays always the same, whatever new entries are entered into find bar.
Closer investigation revealed, that save_config_file() in rcfile.c always counts 15 entries from the bottom of the Glist, while several Glist (searchlist, replacelist) are updated from the top. This causes always save of old entries instead of new ones.
I made some kind of dirty patch that fixes this problem. See attached file. I am not sure if this is the best way to do this (uses identifier matching), however, it works for now.
Please let me know if it is OK to commit it.
Andrius