Undefined behavior when running :terminal in MacOS

2017-07-22 Fir de Conversatie Yegappan Lakshmanan
Hi all, When I run the new ":terminal" command on MacOS with address sanitizer enabled, the following run time errors are seen: libvterm/src/state.c:1255:9: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' libvterm/src/state.c:1256:27: runtime error: left shift of 1

Patch 8.0.0753

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0753 Problem:A job running in a terminal does not get notified of changes in the terminal size. Solution: Use ioctl() and SIGWINCH to report the terminal size. Files: src/terminal.c, src/os_unix.c, src/proto/os_unix.pro *** ../vim-8.0.0752/src/terminal.c 201

Patch 8.0.0752

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0752 Problem:Build fails on MS-Windows. Solution: Change #ifdef for set_color_count(). Files: src/term.c *** ../vim-8.0.0751/src/term.c 2017-07-22 20:33:01.349391278 +0200 --- src/term.c 2017-07-22 21:14:31.947516937 +0200 *** *** 1427,1433 }

Patch 8.0.0751

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0751 (after 8.0.0750) Problem:OpenPTY missing with some combination of features. (Kazunobu Kuriyama) Solution: Adjust #ifdef. Also include pty.pro when needed. Files: src/pty.c, src/misc2.c, src/proto.h *** ../vim-8.0.0750/src/pty.c 2017-07-22 20:53:11.3567017

Patch 8.0.0750

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0750 Problem:OpenPTY missing in non-GUI build. Solution: Always include pty.c, add an #ifdef to skip over the contents. Files: src/pty.c, src/Makefile *** ../vim-8.0.0749/src/pty.c 2016-12-03 16:40:44.432532400 +0100 --- src/pty.c 2017-07-22 20:48:14.082837896 +0200

Patch 8.0.0749

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0749 Problem:Some unicode digraphs are hard to remember. Solution: Add alternatives with a backtick. (Chris Harding, closes #1861) Files: src/digraph.c *** ../vim-8.0.0748/src/digraph.c 2016-11-04 22:17:10.650086465 +0100 --- src/digraph.c 2017-07-22 20:40:08.366

Patch 8.0.0748

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0748 Problem:When running Vim in a terminal window it does not detect the right number of colors available. Solution: Detect the version string that libvterm returns. Pass the number of colors in $COLORS. Files: src/term.c, src/os_unix.c *** ../vim-8

Re: warning: implicit declaration of function 'OpenPTY' is invalid in C99 + link error

2017-07-22 Fir de Conversatie Dominique Pellé
Dominique Pellé wrote: > I tried to build vim-8.0.747 on xubuntu-16.04 x86_64 > but it failed to link and also gave a warning: > > $ CC=clang-4.0 ./configure --with-features=huge --enable-gui=none > $ make -j8 > ...snip... > clang-4.0 -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE > -

warning: implicit declaration of function 'OpenPTY' is invalid in C99 + link error

2017-07-22 Fir de Conversatie Dominique Pellé
I tried to build vim-8.0.747 on xubuntu-16.04 x86_64 but it failed to link and also gave a warning: $ CC=clang-4.0 ./configure --with-features=huge --enable-gui=none $ make -j8 ...snip... clang-4.0 -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1-o objects/pa

Patch 8.0.0747

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0747 Problem::terminal without an argument doesn't work. Solution: Use the 'shell' option. (Yasuhiro Matsumoto, closes #1860) Files: src/terminal.c *** ../vim-8.0.0746/src/terminal.c 2017-07-22 18:38:54.978753810 +0200 --- src/terminal.c 2017-07-22 18:59:49.3776333

Patch 8.0.0746

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0746 Problem:When :term fails the job is not properly cleaned up. Solution: Free the terminal. Handle a job that failed to start. (closes #1858) Files: src/os_unix.c, src/channel.c, src/terminal.c *** ../vim-8.0.0745/src/os_unix.c 2017-07-22 18:04:04.309865

Re: Patch 8.0.0742

2017-07-22 Fir de Conversatie Bram Moolenaar
tux wrote: > Hmm, why is MSVC unsupported? There is an MSVC2015 download on that > GitHub page for WinPTY. Just waiting for someone to make a patch. -- hundred-and-one symptoms of being an internet addict: 204. You're being audited because you mailed your tax return to the IRC. /// Bram Mool

Patch 8.0.0745

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0745 Problem:multi-byte characters in a terminal window are not displayed properly. Solution: Set the unused screen characters. (Yasuhiro Matsumoto, closes #1857) Files: src/terminal.c *** ../vim-8.0.0744/src/terminal.c 2017-07-22 18:04:04.309865

Patch 8.0.0744

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0744 Problem:A terminal window uses pipes instead of a pty. Solution: Add pty support. Files: src/structs.h, src/os_unix.c, src/terminal.c, src/channel.c, src/proto/os_unix.pro, src/os_win32.c, src/proto/os_win32.pro *** ../vim-8.0.0743/src/structs.h 2017-0

Re: Regression: Patch 7.4.709

2017-07-22 Fir de Conversatie h_east
Hi Andy, Tony and all, 2017-7-21(Fri) 4:06:17 UTC+9 Andy Wokula: > Am 20.07.2017 um 20:24 schrieb Tony Mechelynck: > > FWIW, I also think that :tabmove 5 should move the current tab after > > what is now tab 5. > > > > Andy: when you do ":1,5move 10", where would you expect the present > > first 5

Patch 8.0.0743

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0743 Problem:The 'termsize' option can be set to an invalid value. Solution: Check the 'termsize' option to be valid. Files: src/option.c, src/testdir/gen_opt_test.vim *** ../vim-8.0.0742/src/option.c2017-07-15 19:22:33.642179911 +0200 --- src/option.c2017-07

Re: Patch 8.0.0742

2017-07-22 Fir de Conversatie tux.
Hmm, why is MSVC unsupported? There is an MSVC2015 download on that GitHub page for WinPTY. -- -- 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 --- You rece

Patch 8.0.0742

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0742 Problem:Terminal feature does not work on MS-Windows. Solution: Use libvterm and libwinpty on MS-Windows. (Yasuhiro Matsumoto) Files: src/INSTALLpc.txt, src/Make_cyg_ming.mak, src/channel.c, src/proto/channel.pro, src/terminal.c *** ../vim-8.0.0741/src/INSTA

Re: [vim/vim] VIM: Haiku patches (#1856)

2017-07-22 Fir de Conversatie Rhialto
On Sat 22 Jul 2017 at 01:26:56 -0700, miqlas wrote: > A src/gui_haiku.cc (5294) Ah, my BeOS version is reviving... incluiding the VDMCP which only Amigans will understand :-) -Olaf. -- ___ Olaf 'Rhialto' Seibert -- Wayland: Those who don't understand X \X/ rhialto/at/falu.nl -- are con

Re: [doc][patch] There is one extra closing square bracket in document

2017-07-22 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: > Patch attached. Thanks. -- hundred-and-one symptoms of being an internet addict: 198. You read all the quotes at Netaholics Anonymous and keep thinking "What's wrong with that?" /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///

Re: An error on patch 8.0.0736

2017-07-22 Fir de Conversatie Bram Moolenaar
Rick Howe wrote: > I found an error on patch 8.0.0736. > With the following sample function, > 'diffthis' and 'diffoff' will cause > "E788: Not allowed to edit anoter buffer now" > on 'wincmd'. > > augroup xyz > au! > au OptionSet * call XYZ() > augroup END > > function! XYZ() >

Patch 8.0.0741

2017-07-22 Fir de Conversatie Bram Moolenaar
Patch 8.0.0741 Problem:Cannot build with HPUX. Solution: Rename envbuf_TERM to envbuf_Term. (John Marriott) Files: src/os_unix.c *** ../vim-8.0.0740/src/os_unix.c 2017-07-20 23:04:42.967282191 +0200 --- src/os_unix.c 2017-07-22 14:05:54.744029831 +0200 *** ***

Re: diff.c, improve diff performance with huge files

2017-07-22 Fir de Conversatie Bram Moolenaar
Akria Sheng wrote: > When vim diff, it will always write buffer to a temp file. > But if the file is very huge, for example tens of giga bytes, it will spend > much time to write temp file. > > I try to make vim avoid write unnecessary temp file, it resolve my problem, > but I don't know the mod

Re: Patch 8.0.0739

2017-07-22 Fir de Conversatie Bram Moolenaar
John Marriott wrote: > On 21-Jul-2017 07:05, Bram Moolenaar wrote: > > Patch 8.0.0739 > > Problem:Terminal resizing doesn't work well. > > Solution: Resize the terminal to the Vim window and the other way around. > > Avoid mapping typed keys. Set the environment properly. > >

Re: diff.c, improve diff performance with huge files

2017-07-22 Fir de Conversatie Akria Sheng
Nazri於 2017年7月22日星期六 UTC+8下午6時18分28秒寫道: > On Sat, 22 Jul 2017 at 11:37 AM, Akria Sheng wrote: > > > When vim diff, it will always write buffer to a temp file. > But if the file is very huge, for example tens of giga bytes > > > I'm curious what kind of file is this, a database dump? > > > Na

Re: diff.c, improve diff performance with huge files

2017-07-22 Fir de Conversatie Nazri Ramliy
On Sat, 22 Jul 2017 at 11:37 AM, Akria Sheng wrote: > When vim diff, it will always write buffer to a temp file. > But if the file is very huge, for example tens of giga bytes > I'm curious what kind of file is this, a database dump? Nazri > -- -- You received this message from the "vim_dev