Fix crash when trying to find a filename in an empty string; Remove unused variable; Fix bug where tmux window jumps to its previous coordinate when layout changes.