winterttr wrote:
> 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. I can reproduce it only when setting the column to a large value. I'll make a patch for it. -- Not too long ago, compress was something you did to garbage... /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
