[sublime] swapLineUp failing at border case

swapLineUp failing while swapping the last line. Fixed it, but still there's one more problem, if the cursor is at absolute end of file, it doesn't move.