Switch buffer if file is already opened instead of always call edit. This fix the problem where the cursor would always return at the beginning of the file.
Merge pull request #8 from okcompute/master

Switch buffer if file is opened instead of calling edit all the time.