Merge pull request #231 from lx1988cyk/patch-4

Fix cursor after open_file