fixes the screen restore so it works on macvim and should also still work on gvim