Cursor Memory in Runic Enchantment script

Hi! I'm using Kread-Ex's Runic Enchantment script and works fine: http://dl.dropboxusercontent.com/u/52061415/Scripts/Runic_Enchantment.rb

The little inconvenience is that it doesn't remember where the cursor is last at when I select an equipment then press the cancel button. It goes all the way back up to the top of the list. Very inconvenient when there is a lot of equipment. It's like the script is refreshing the whole window every time I press cancel. Same problem occurs when selecting the "runes". I think a simple edit of the script will fix this problem, but I have no knowledge of scripting hehe

The terms of use stated the script is free to adapt to my uses, so no worries there!

Thanks in advance.

Original thread: https://forums.rpgmakerweb.com/threads/cursor-memory-in-runic-enchantment-script.24720/