[PATCH] A temp file name generating problem on Windows

2011-02-05 Thread H Xu
Hello, The comment in function vim_tempname says: "GetTempPath() failed, use current dir". It use "szTempFile[0] = NUL" to do this, which makes szTempFile an empty string. szTempFile is going to be passed as a parameter to the function GetTempFileName. However, if we want to use current direct

Re: PATCH: v:register value with clipboard=unnamed,unnamedplus

2011-02-05 Thread Bram Moolenaar
Ingo Karkat wrote: > On 04-Feb-2011 21:45, ZyX wrote: > > There is one compatibility problem for empty v:register value: > > constructs like > > > > execute "normal! \"".v:register."yy" > > > > won't work. > > Good point. Actually, I was surprised that the following works even with an > e

Re: ctrl-o with a mapping

2011-02-05 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 19:38:30 05 February 2011, Saturday by Ben Fritz: Perhaps a bug somewhere? It should be redirected to vim_dev, I think. Original message: > On Feb 5, 4:05 am, ZyX wrote: > > Reply to message «Re: ctrl-o with a mapping», > > sent 23:56:30 05 Feb

Re: ctrl-o with a mapping

2011-02-05 Thread James Vega
On Sat, Feb 05, 2011 at 07:57:00PM +0300, ZyX wrote: > Reply to message «Re: ctrl-o with a mapping», > sent 19:38:30 05 February 2011, Saturday > by Ben Fritz: > > Perhaps a bug somewhere? It should be redirected to vim_dev, I think. > > Original message: > > On Feb 5, 4:05 am, ZyX wrote: > > >

Re: ctrl-o with a mapping

2011-02-05 Thread Ingo Karkat
On 05-Feb-2011 19:44, James Vega wrote: > On Sat, Feb 05, 2011 at 07:57:00PM +0300, ZyX wrote: >> Reply to message «Re: ctrl-o with a mapping», >> sent 19:38:30 05 February 2011, Saturday >> by Ben Fritz: >> >> Perhaps a bug somewhere? It should be redirected to vim_dev, I think. >> >> Original me

[patch] improved completion of ":language" command (added available locales)

2011-02-05 Thread Dominique Pellé
Hi Attached patch improves completion of Ex command ":language" by completing available locales. It works by running command "locale -a" to find available locales. I only have the environment to test it on Linux. Example: :language messages fr fr_BE.utf8 fr_CA.utf8 fr_CH.utf8 fr_FR.utf8 fr_

[PATCH] Fix a misuse of tmpnam()

2011-02-05 Thread H Xu
Hello, tmpnam() might return a NULL pointer if it failed to generate a unique name. Vim doesn't handle it properly. Here's the patch to fix it. Regards, Hong Xu 2011/2/6 -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying