On 06/08/11 16:55, ZyX wrote:
Reply to message «Re: [BUG] Passing special characters to&listchars and
&fillchars causes screen corruption»,
sent 18:17:32 06 August 2011, Saturday
by Tony Mechelynck:

The bug, if there is one, is that

        :set list lcs=nbsp:\x0D

(with a non-printable character) does not generate an error (I get "E474
Invalid argument", which IMO is no bug.)
Yes, error is the desired behavior. It is not generated in my case (you missed
that these quotes are $'...', not '...', so it is `:set list lcs=nbsp:^M',
equivalent to `set list|let&lcs="nbsp:\x0D"').

Ah, yes, sorry, I had overlooked these dollar signs. Now I can reproduce the problem:

        :set list lcs=nbsp:^M

(entering ^M at the keyboard as Ctrl-V Enter)

does not give an error (I guess that's the bug): then typing

        :normal! i~~~a^[

where each ~ represents a non-breaking space, typed as Ctrl-V x A0 (without the spaces), and ^[ an escape (entered as Ctrl-V Esc), Vim displays

^M^M^Ma

The cursor is shown on the second ^M but ga displays

<a>  97,  Hex 61,  Octal 141

Redrawing (Ctrl-L) doesn't change the display, and moving the cursor left and right (in Normal mode without virtual editing) is only possible in the first four screen cells, where ^M^M is shown in blue. Even o (to create a second line) followed by <Esc><Up> then left-right moves, moves only over the first four screen cells, and one by one.


I tested on vim-7.3.269 from mercurial repository with huge features, gui and
perl, tcl, lua, ruby and python3 support.

yeah, me too, except python2, not python3. FWIW I'm on linux-x86_64 (openSUSE 11.4).


but even temporarily trying to set only

        :set list=\x0D
You can't set boolean arguments this way, so I don't understand what is this
remark for.

I meant listchars


Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
151. You find yourself engaged to someone you've never actually met,
     except through e-mail.

--
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

Raspunde prin e-mail lui