fix cursor moves when file listing is empty
Merge pull request #1 from oten/master

fix cursor moves when file listing is empty