Fix an issue where the selection would often be lost after using the Link from textbox
Fix an issue where using the 'Link from' would result into the `link` field of the previously selected line to be reset to 0
Don't allow using the link from functionality to the selected script
Don't allow using the link to functionality to the selected script