traces.vim
traces.vim copied to clipboard
Combinations of certain values of 'listchars' and 'encoding' cause errors
Hi, I think I've found a bug in the plugin.
To reproduce:
- Run
gvim.exe --clean --cmd "language messages English" - Execute
:set listchars=eol:¬ - Execute
:packadd traces.vim-master - Execute
:set encoding=cp1252 - Execute
:write file.txt.
gVim writes the file, but reports an error:
:write file.txt
Error detected while processing CmdlineLeave Autocommands for ":"..function traces#cmdl_leave:
line 52:
E1511: Wrong number of characters for field "eol"
"file.txt" [New] 0L, 0B written
OS: Windows 10 Home 22H2, gVim 9.1.1696, Traces 1.1.0.