Re: [patch] Separate filetype for JSON

2014-07-16 Fir de Conversatie Bram Moolenaar
David Barnett wrote: Agreed. I'd prefer to have full-fledged JSON support, but I'd also like to get the filetype fixed ASAP. I went with a relatively minimal change for now that's less likely to be controversial. Yes, let's first split the filetype, improving the highlighting is a separate

Re: [patch] Separate filetype for JSON

2014-07-16 Fir de Conversatie Bram Moolenaar
David Barnett wrote: This is a patch to create a separate json filetype and use it for *.json files instead of using javascript. It currently just forwards indent and syntax settings to the javascript filetype, but it does define its own ftplugin/json.vim file since most of the settings in

Re: An Open Source implementation of Google Drive Realtime API

2014-07-16 Fir de Conversatie Bram Moolenaar
田传武 wrote: I'd like to share an open-source project which implements nearly all features of the google drive realtime api. *Google Drive Realtime API* https://developers.google.com/drive/realtime/ provides Google Docs–style instant collaboration. It lets multiple people edit the same data

Re: :botright split create window with invalid size when there is only a few spaces.

2014-07-16 Fir de Conversatie Bram Moolenaar
Yukihiro Nakadaira wrote: :botright split create window with invalid size when there is only a few spaces. Steps to reproduce: $ vim -u NONE -N :vsplit :while 1 | split | endwhile :quit :botright split :echo winheight(0) 11(actual height is 2 or 3)

Patch 7.4.365

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.365 Problem:Crash when using :botright split when there isn't much space. Solution: Add a check for the minimum width/height. (Yukihiro Nakadaira) Files: src/window.c *** ../vim-7.4.364/src/window.c 2014-07-02 17:16:51.334225522 +0200 --- src/window.c2014-07-16

Patch 7.4.366

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.366 Problem:Can't run the linebreak test on MS-Windows. Solution: Fix the output file name. (Taro Muraoka) Files: src/testdir/Make_dos.mak *** ../vim-7.4.365/src/testdir/Make_dos.mak 2014-07-02 19:59:35.454375136 +0200 --- src/testdir/Make_dos.mak2014-07-16

Re: Can't run test_listlbr on Windows

2014-07-16 Fir de Conversatie Bram Moolenaar
Taro Muraoka wrote: Hi list and Bram. I found a problem test_listlbr is never executed on Windows. And I wrote an attached patch to fix it. Please check it. Thanks! -- Lawmakers made it obligatory for everybody to take at least one bath each week -- on Saturday night.

Re: An Open Source implementation of Google Drive Realtime API

2014-07-16 Fir de Conversatie 田传武
Not familiar with C, which is difficult for me at least now On Wednesday, July 16, 2014 8:17:17 PM UTC+8, Bram Moolenaar wrote: 田传武 wrote: I'd like to share an open-source project which implements nearly all features of the google drive realtime api. *Google Drive Realtime API*

Re: [patch] Window size is not restored when the command-line window closed.

2014-07-16 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: Hi Bram and Vim developer, How to reproduce: - run vim $ vim -N -u NONE - open quickfix window and vsp and sp on top window. :copen|wincmd k|vsp|sp - open command-line window and close this. q:CR Expected behavior: - Restore all window size before

Patch 7.4.368

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.368 Problem:Restoring the window sizes after closing the command line window doesn't work properly if there are nested splits. Solution: Restore the sizes twice. (Hirohito Higashi) Files: src/window.c *** ../vim-7.4.367/src/window.c 2014-07-16 14:16:41.519771715

Re: Issue 231 in vim: netrw silently closing buffers on its own

2014-07-16 Fir de Conversatie vim
Updates: Status: Started Comment #6 on issue 231 by drc...@campbellfamily.biz: netrw silently closing buffers on its own http://code.google.com/p/vim/issues/detail?id=231 I put v153n (netrw) on my website; this has a little more code to handle setting up s:netrw_silentxfer. The

[patch] fixed access to freed memory when deleting signs

2014-07-16 Fir de Conversatie Dominique Pellé
Hi Using Vim-7.4.368 (huge) built with -DEXITFREE, I see access to freed memory when doing: $ valgrind vim -u NONE -C /tmp/xx \ -c ':sign define piet text= texthl=Search' \ -c ':exe :sign place 2 line=23 name=piet file= . expand(%:p)' \ -c 'qa' ==6787== Memcheck, a memory error

Patch 7.4.369

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.369 Problem:Using freed memory when exiting while compiled with EXITFREE. Solution: Set curwin to NULL and check for that. (Dominique Pelle) Files: src/buffer.c, src/window.c *** ../vim-7.4.368/src/buffer.c 2014-06-12 14:01:27.571769788 +0200 --- src/buffer.c

Re: Bug: bad interaction between ui and preview window for omnifunc with extra info

2014-07-16 Fir de Conversatie h_east
Hi Bram, Attach a patch. Suppress preview window's status line redrawing when popupmenu opened for completion with preview window. What do you think? worth to consider? -- Best regards, Hirohito Higashi -- -- You received this message from the vim_dev maillist. Do not top-post! Type your

Patch 7.4.370

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.370 Problem:Linebreak test fails when encoding is not utf-8. (Danek Duvall) Solution: Split the test in a single byte one and a utf-8 one. (Christian Brabandt) Files: src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,

Patch 7.4.371

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.371 Problem:When 'linebreak' is set control characters are not correctly displayed. (Kimmy Lindvall) Solution: Set n_extra. (Christian Brabandt) Files: src/screen.c *** ../vim-7.4.370/src/screen.c 2014-07-09 20:20:40.359620108 +0200 --- src/screen.c

Re: [patch] Fix characters from completion suggestion remaining in line

2014-07-16 Fir de Conversatie Jacob Niehus
I agree with all of that in principle, but I've been able to reliably compile and with and without the screen_start() and see the problem go away with screen_start() there. Unfortunately I don't know why it works, so I can't really defend my suggestion. Forcing a redraw with

Re: :botright split create window with invalid size when there is only a few spaces.

2014-07-16 Fir de Conversatie Yukihiro Nakadaira
On Wed, Jul 16, 2014 at 9:35 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote I found another problem that zero width/height current window is created. hmm... $ vim -u NONE -N :set noequalalways winminheight=0 :while 1 | split | endwhile $ vim -u NONE -N :set noequalalways

Re: getregtype() become always 1 for blockwised-star-yank on non-linux environment.

2014-07-16 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: Copy texts into star register, like: CTRL-V ll *y, getregtype() should return ^V3. On linux environment, it works fine because vim seems to handle changes of clipboard. Below is a patch to re-calculate y_width. - Yasuhiro Matsumoto diff -r b8f703a4e55f

Re: getregtype() become always 1 for blockwised-star-yank on non-linux environment.

2014-07-16 Fir de Conversatie Bram Moolenaar
I wrote: Yasuhiro Matsumoto wrote: Copy texts into star register, like: CTRL-V ll *y, getregtype() should return ^V3. On linux environment, it works fine because vim seems to handle changes of clipboard. Below is a patch to re-calculate y_width. - Yasuhiro Matsumoto

Re: [patch] Fix characters from completion suggestion remaining in line

2014-07-16 Fir de Conversatie Bram Moolenaar
Jacob Niehus wrote: I agree with all of that in principle, but I've been able to reliably compile and with and without the screen_start() and see the problem go away with screen_start() there. Unfortunately I don't know why it works, so I can't really defend my suggestion. Forcing a

Patch 7.4.372

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.372 Problem:When 'winminheight' is zero there might not be one line for the current window. Solution: Change the size computations. (Yukihiro Nakadaira) Files: src/window.c *** ../vim-7.4.371/src/window.c 2014-07-16 16:30:21.647608710 +0200 --- src/window.c

Re: Patch 7.4.372

2014-07-16 Fir de Conversatie Yukihiro Nakadaira
On Thu, Jul 17, 2014 at 1:19 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.4.372 Problem:When 'winminheight' is zero there might not be one line for the current window. Solution: Change the size computations. (Yukihiro Nakadaira) Files: src/window.c I'm

Re: Patch 7.4.372

2014-07-16 Fir de Conversatie Yukihiro Nakadaira
On Thu, Jul 17, 2014 at 1:38 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote: On Thu, Jul 17, 2014 at 1:19 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.4.372 Problem:When 'winminheight' is zero there might not be one line for the current window.

Re: Patch 7.4.372

2014-07-16 Fir de Conversatie Yukihiro Nakadaira
On Thu, Jul 17, 2014 at 1:53 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote: On Thu, Jul 17, 2014 at 1:38 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote: On Thu, Jul 17, 2014 at 1:19 AM, Bram Moolenaar b...@moolenaar.net wrote: Patch 7.4.372 Problem:When

odd character drawing problem

2014-07-16 Fir de Conversatie Charles Campbell
Hello: The following line, when in a buffer that vim is displaying: m=⎣ℜ(b-a)⎦=1~1026 has the script R displayed correctly when the cursor is swept over it from right to left, but the script R is displayed incorrectly when the cursor is swept over it from left to right. I'm using:

Re: Patch 7.4.372

2014-07-16 Fir de Conversatie Bram Moolenaar
Yukihiro Nakadaira wrote: --047d7bdc801adb733f04fe52c63e Content-Type: text/plain; charset=UTF-8 On Thu, Jul 17, 2014 at 1:53 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote: On Thu, Jul 17, 2014 at 1:38 AM, Yukihiro Nakadaira yukihiro.nakada...@gmail.com wrote: On

Patch 7.4.373

2014-07-16 Fir de Conversatie Bram Moolenaar
Patch 7.4.373 Problem:Compiler warning for unused argument and unused variable. Solution: Add UNUSED. Move variable inside #ifdef. Files: src/charset.c, src/window.c *** ../vim-7.4.372/src/charset.c2014-07-02 19:59:35.450375136 +0200 --- src/charset.c 2014-07-16

Re: [patch] Fix characters from completion suggestion remaining in line

2014-07-16 Fir de Conversatie Jacob Niehus
Do you think it could be a Cygwin bug? I'm still seeing it in mintty and XTerm with and without tmux. -- -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php ---

Re: Issue 231 in vim: netrw silently closing buffers on its own

2014-07-16 Fir de Conversatie vim
Comment #7 on issue 231 by johnston...@gmail.com: netrw silently closing buffers on its own http://code.google.com/p/vim/issues/detail?id=231 Thanks for the quick response. I tried the new version and it's much better than 153m, but it's not quite right. The error messages are gone now,

Re: Patch 7.4.367

2014-07-16 Fir de Conversatie h_east
Hi Bram, 2014/7/16(Wed) 21:44:08 UTC+9 Bram Moolenaar: Patch 7.4.367 (after 7.4.357) Problem:Other solution for redrawing after completion. Solution: Schedule a window redraw instead of just clearing the command line. (Jacob Niehus) Files:src/edit.c