This prevents problems if one starts a line, which would cause it to be interpreted as a command character. Fixes #13038. (cherry picked from commit 1f7aa16eae)
1f7aa16eae