Fix # going to the beginning of the line and quickfix windows staying open