The actual hard limit isn't how many lines you can have. Each slot can only store up to 2MiB of source code, so you'll probably run out before you even hit 999999. I do believe if you try to load a file longer than 999999 lines it will just throw away the rest since the editor isn't technically supposed to count any higher. Needs to be tested.