OS: WindowsXP
VIM : vim72 MS-Windows 32-bit GUI version

i am doing a coding through the python module ' vim' for vim
and , find a problem which will cause the vim to crash.


you can try it like this :

1. save a file as bellow
=========================
"----test.vim---
function! Foo()
        python import vim
        python vim.current.window.cursor = ( 1 , 1 )
        return ""
endfunction

inoremap a <C-R>=Foo()<CR>
===========================

2. open the vim and
:source test.vim

3. into the insert-mode ( with 'i' press )
and try to input the "aff" into the buffer

4. for me , the vim crashed.


i check the vim source and find that ,
with the vim function setpos() ,
call a  check_cursor() right after the cursor is set.

but in the if_python.c , WindowSetattr()
just check the line count without checking the column.

i don't know much detail about the internal function and vim source code ,  so
i just to report this without giving a patch.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui