Change all final cursor positions

With the final cursor position being `0`, the next tab after will not
jump to after the block, but stay inside. I have changed the places I
see of most value-
Merge pull request #5 from tixz/master

Change all final cursor positions