Export selection to file would never finish and wouldn't export the last byte.
Implementation description
It was just a simple off by one when using the selection's end address to calculate the remaining data size. Add one to the remaining size calculation.
Problem description
Export selection to file would never finish and wouldn't export the last byte.
Implementation description
It was just a simple off by one when using the selection's end address to calculate the remaining data size. Add one to the remaining size calculation.
Additional things
Fixes https://github.com/WerWolv/ImHex/issues/1733, https://github.com/WerWolv/ImHex/issues/1619 and https://github.com/WerWolv/ImHex/issues/1597.