That's realy interesting. I didn't know that missing line endings can cause errors, but I never had problems. Now I found out that vim automatically adds a newline at the last line. But it don't shows an empty new line at the end (if a manual newline is added, the file has two newline at the end).
So I tried with more editors, nano does the same, Kate adds a newline when the file is saved (and shows it). Only VSCode don't adds a newline in the default configuration, but it can be enabled in the options with "insert final newline".
So I tried with more editors, nano does the same, Kate adds a newline when the file is saved (and shows it). Only VSCode don't adds a newline in the default configuration, but it can be enabled in the options with "insert final newline".
Statistics: Posted by blackbird — 2025-01-10 21:00