fix bug that couldn't display same file name as active editor opened one

Closed #3 .