traces.vim icon indicating copy to clipboard operation
traces.vim copied to clipboard

Combinations of certain values of 'listchars' and 'encoding' cause errors

Open lkintact opened this issue 5 months ago • 0 comments

Hi, I think I've found a bug in the plugin.

To reproduce:

  1. Run gvim.exe --clean --cmd "language messages English"
  2. Execute :set listchars=eol:¬
  3. Execute :packadd traces.vim-master
  4. Execute :set encoding=cp1252
  5. 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.

lkintact avatar Aug 28 '25 14:08 lkintact