On 2020-05-22, dirdi wrote:
> Bug Description
> The end-of-line character (lcs-eol, $ by default) is displayed at the end of
> file (EOF), no matter if the file actually ends with a newline.
>
> To Reproduce
>
> 1. Create a file without a newline at EOF echo -n foo > bar
> 2. Run vim --clean bar
> 3. Enable list mode :set list
>
> Neither disabling the fixeol setting (:set nofixeol), nor starting Vim in
> binary mode (vim --clean -b bar) affects this behavior.
>
> Expected behavior
> There should be no EOL character (i.e. $) being displayed.
While I appreciate your point of view, ":help lcs-eol" says:
eol:c Character to show at the end of each line. When
omitted, there is no extra character at the end of
the line.
It says that the eol character appears at the end of the line;
it does not say that the eol character represents the EOL sequence.
In the case of the last line of a file that does not end with an EOL
sequence, the eol character shows where the text of that line,
including white space, ends. By not having the eol character at the
end of the last line, the user would lose that information.
So I think it's a feature and the intended behavior, not a bug.
As for being able to visualize that distinction, as you would like,
I'm afraid I can't think a solution at the moment that uses the
existing capabilities of Vim.
Regards,
Gary
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20200522212103.GA8832%40phoenix.