There seems to be an edge case when positioning the cursor and
'virtualedit' is set to all that causes gvim to crash.  This was
introduced between 6.4 and 7.0b.

It can be reproduced using the attached files as follows:

  gvim -u NONE -N -S crash.vim crash.txt

If the last jump in crash.vim is commented out, you can see getpos()
returns an interesting set of values:

  :echo getpos("']")
  [0, 15, 2147483647, 3]

In fact, calling setpos() with the col item of the list set to
2147483647 and off set to any number greater than 1 causes Vim to crash.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <james...@jamessan.com>

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui