complete pattern

2008-11-18 Fir de Conversatie [EMAIL PROTECTED]
complete pattern --~--~-~--~~~---~--~~ You received this message from the vim_dev maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

complete pattern

2008-11-18 Fir de Conversatie [EMAIL PROTECTED]
Hi! I'm interesting which pattern is using when i want to complete keyword from buffer or dict file(s). and how i can change this in source code (im browsing edit.c and etc but didnt find any patterns for this :( ) i want to do it because i need to complete keywords where are chars like :-_, but

Re: complete pattern

2008-11-18 Fir de Conversatie Gary Johnson
On 2008-11-18, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! I'm interesting which pattern is using when i want to complete keyword from buffer or dict file(s). and how i can change this in source code (im browsing edit.c and etc but didnt find any patterns for this :( ) i want to do it

Re: complete pattern

2008-11-18 Fir de Conversatie [EMAIL PROTECTED]
yes!!! thank you, as usual an answer was right under nose! :) Thank you very much! I long suffered but even not hitted upon to such! On Nov 18, 8:17 pm, Gary Johnson [EMAIL PROTECTED] wrote: On 2008-11-18, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi! I'm interesting which pattern is using

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: I observe a bug with the latest Vim-7.2.42 (huge) on Linux x86. It's not recently introduced since I can reproduce at least with Vim-7.1.314 which comes with Ubuntu-8.10. It only happens in a terminal (gvim does not seem affected). Steps to reproduce: 1/ start

automatic setting of encoding failure: bug in mbyte.c?

2008-11-18 Fir de Conversatie Danek Duvall
In enc_locale(), there's a for loop that looks like this: for (i = 0; s[i] != NUL s + i buf + sizeof(buf) - 1; ++i) but I can't figure out what the purpose is for that second test. If I'm reading it correctly, it's testing that the address of the character we're copying from the source

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Dominique Pelle
2008/11/18 Bram Moolenaar [EMAIL PROTECTED]: Dominique Pelle wrote: I observe a bug with the latest Vim-7.2.42 (huge) on Linux x86. It's not recently introduced since I can reproduce at least with Vim-7.1.314 which comes with Ubuntu-8.10. It only happens in a terminal (gvim does not seem

Re: automatic setting of encoding failure: bug in mbyte.c?

2008-11-18 Fir de Conversatie Dominique Pelle
2008/11/18 Danek Duvall [EMAIL PROTECTED]: In enc_locale(), there's a for loop that looks like this: for (i = 0; s[i] != NUL s + i buf + sizeof(buf) - 1; ++i) but I can't figure out what the purpose is for that second test. If I'm reading it correctly, it's testing that the address

Re: automatic setting of encoding failure: bug in mbyte.c?

2008-11-18 Fir de Conversatie Danek Duvall
On Tue, Nov 18, 2008 at 10:55:56PM +0100, Dominique Pelle wrote: for (i = 0; s[i] != NUL i sizeof(buf) - 1; ++i) The test (i sizeof(buf) - 1) prevents overflow in buf[...], I would not remove it. Of course; I was too focused on figuring out what the original code was (or wasn't)

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Tony Mechelynck
On 18/11/08 22:29, Dominique Pelle wrote: [...] But I can simplify the way to reproduce it. It happens whenever I do a visual selection in between: - selecting text in clipboard with the mouse - and pasting with middle click. Example: 1/ start vim with valgrind: valgrind 2 valgrind.log

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie John Little
Dominique When I follow this: 1/ start vim with valgrind:   valgrind 2 valgrind.log  vim -u NONE 2/ select some text with mouse outside vim (one line is enough) 3/ enter INSERT mode in vim and type some text:   iThis is a testEsc 4/ visual select line typed in 3/  with:   V 5/ click middle

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Tony Mechelynck
On 19/11/08 06:40, John Little wrote: Dominique When I follow this: 1/ start vim with valgrind: valgrind 2 valgrind.log vim -u NONE 2/ select some text with mouse outside vim (one line is enough) 3/ enter INSERT mode in vim and type some text: iThis is a testEsc 4/ visual select

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Dominique Pelle
2008/11/19 Tony Mechelynck [EMAIL PROTECTED]: On 18/11/08 22:29, Dominique Pelle wrote: [...] But I can simplify the way to reproduce it. It happens whenever I do a visual selection in between: - selecting text in clipboard with the mouse - and pasting with middle click. Example: 1/

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Dominique Pelle
2008/11/19 John Little [EMAIL PROTECTED]: Dominique When I follow this: 1/ start vim with valgrind: valgrind 2 valgrind.log vim -u NONE 2/ select some text with mouse outside vim (one line is enough) 3/ enter INSERT mode in vim and type some text: iThis is a testEsc 4/ visual select

Re: crash when pasting clipboard from mouse

2008-11-18 Fir de Conversatie Tony Mechelynck
On 19/11/08 08:13, Dominique Pelle wrote: 2008/11/19 Tony Mechelynck[EMAIL PROTECTED]: On 18/11/08 22:29, Dominique Pelle wrote: [...] But I can simplify the way to reproduce it. It happens whenever I do a visual selection in between: - selecting text in clipboard with the mouse - and