Using HeidiSQL 126.96.36.19930 I saw something I did not experience before. I loaded an SQL query from file. The contents is shown with the first line starting with a space - which is not in the file. I can't remove that space, when I do it stays where it is and the first real query character is removed. When I go from left to right then 1 position before an opening bracket(so 1 pos too early) highlighting occurs but both highlighted brackets are shown shifted one position to the left. So it seems the representation of the line internally and externally are out of sync. The query does not run, it throws an SQL error. Whatever I try I seem not to be able to get rid of the mysterious first character, other than cutting the query text, selecting everything else and deleting this.