Fixes #51 Open file in last active window

Hi Pei,

This PR fixes #51.

Cheers,
syl20bnr