Commit Graph

3487 Commits

Author SHA1 Message Date
Florian Walch
f415932b2d README: Add AppVeyor badge. #2691 2015-05-18 11:03:48 -04:00
Thiago de Arruda
1352725beb build: Limit --coverage flag to files under "src"
Resolves #2632. This is done so C helper modules don't generate unexpected
coverage output.

Reviewed-by: Justin M. Keyes <justinkz@gmail.com>
Reviewed-by: Florian Walch <florian@fwalch.com>
2015-05-18 04:28:01 -03:00
Florian Walch
945186be2e deps: Update LuaJIT to 2.0.4. #2688
Changes since 2.0.3:

 - Fix stack check in narrowing optimization.
 - Fix Lua/C API typecheck error for special indexes.
 - Fix string to number conversion.
 - Fix lexer error for chunks without tokens.
 - Don't compile IR_RETF after CALLT to ff with-side effects.
 - Fix BC_UCLO/BC_JMP join optimization in Lua parser.
 - Fix corner case in string to number conversion.
 - Gracefully handle lua_error() for a suspended coroutine.
 - Avoid error messages when building with Clang.
 - Fix snapshot #0 handling for traces with a stack check on entry.
 - Fix fused constant loads under high register pressure.
 - Invalidate backpropagation cache after DCE.
 - Fix ABC elimination.
 - Fix debug info for main chunk of stripped bytecode.
 - Fix FOLD rule for string.sub(s, ...) == k.
 - Fix FOLD rule for STRREF of SNEW.
 - Fix frame traversal while searching for error function.
 - Prevent GC estimate miscalculation due to buffer growth.
 - Prevent adding side traces for stack checks.
 - Fix top slot calculation for snapshots with continuations.
 - Fix check for reuse of SCEV results in FORL.
 - Add PS Vita port.
 - Fix compatibility issues with Illumos.
 - Fix DragonFly build (unsupported).
 - OpenBSD/x86: Better executable memory allocation for W^X mode.
 - x86: Fix argument checks for ipairs() iterator.
 - x86: lj_math_random_step() clobbers XMM regs on OSX Clang.
 - x86: Fix code generation for unused result of math.random().
 - x64: Allow building with LUAJIT_USE_SYSMALLOC and LUAJIT_USE_VALGRIND.
 - x86/x64: Fix argument check for bit shifts.
 - x86/x64: Fix code generation for fused test/arith ops.
 - ARM: Fix write barrier check in BC_USETS.
 - PPC: Fix red zone overflow in machine code generation.
 - PPC: Don't use mcrxr on PPE.
 - Various archs: Fix excess stack growth in interpreter.
 - FFI: Fix FOLD rule for TOBIT + CONV num.u32.
 - FFI: Prevent DSE across ffi.string().
 - FFI: No meta fallback when indexing pointer to incomplete struct.
 - FFI: Fix initialization of unions of subtypes.
 - FFI: Fix cdata vs. non-cdata arithmetic and comparisons.
 - FFI: Fix __index/__newindex metamethod resolution for ctypes.
 - FFI: Fix compilation of reference field access.
 - FFI: Fix frame traversal for backtraces with FFI callbacks.
 - FFI: Fix recording of indexing a struct pointer ctype object itself.
 - FFI: Allow non-scalar cdata to be compared for equality by address.
 - FFI: Fix pseudo type conversions for type punning.

Taken from http://luajit.org/changes.html
2015-05-18 10:09:09 +03:00
Michael Reed
4140d23cc0 Manual pages: Fix incorrect environment variable references
This was done prematurely for #2569, but obviously forgotten about.
2015-05-17 19:19:41 -04:00
Felipe Morales
b90378dfb0 options: Enable &wildmenu, use "list:longest,full" for &wildmode by default #2677 2015-05-17 15:24:31 -04:00
David Bürgin
b1403e7d44 vim-patch:7.4.597 #2658
Problem:    Cannot change the result of systemlist().
Solution:   Initialize v_lock. (Yukihiro Nakadaira)

https://github.com/vim/vim/commit/v7-4-597

See https://groups.google.com/d/msg/vim_dev/WXCfHMeqjfk/n2PjNwZ2bzIJ
2015-05-17 15:11:10 -04:00
cztchoice
7341b285d0 vim-patch: Mark some patches as NA #2672
These changes cannot apply because they
a) fix compiler warning
b) modify removed GUI related code
c) modify removed build files

mark the following patch as NA:
* 7.4.728, https://github.com/vim/vim/commit/v7-4-728
* 7.4.727, https://github.com/vim/vim/commit/v7-4-727
* 7.4.726, https://github.com/vim/vim/commit/v7-4-726
* 7.4.724, https://github.com/vim/vim/commit/v7-4-724
* 7.4.720, https://github.com/vim/vim/commit/v7-4-720
* 7.4.705, https://github.com/vim/vim/commit/v7-4-705
* 7.4.681, https://github.com/vim/vim/commit/v7-4-681
* 7.4.679, https://github.com/vim/vim/commit/v7-4-679
* 7.4.677, https://github.com/vim/vim/commit/v7-4-677
* 7.4.676, https://github.com/vim/vim/commit/v7-4-676
* 7.4.674, https://github.com/vim/vim/commit/v7-4-674
* 7.4.669, https://github.com/vim/vim/commit/v7-4-669
* 7.4.663, https://github.com/vim/vim/commit/v7-4-663
* 7.4.657, https://github.com/vim/vim/commit/v7-4-657

Reviewed-by: David Bürgin <676c7473@gmail.com>
Reviewed-by: Michael Reed <m.reed@mykolab.com>
Reviewed-by: oni-link <knil.ino@gmail.com>
2015-05-17 15:03:49 -04:00
Michael Reed
aa1d9a1807 Build: Use GNUInstallDirs, install man pages #2649
For now, only install man pages matching "nvim*.1": we don't want to
install xxd.1 as it might conflict with that of a user's Vim
installation.

closes #1826

Reviewed-by: Florian Walch <florian@fwalch.com>
Helped-by: John Szakmeister <john@szakmeister.net>
2015-05-17 14:57:43 -04:00
Björn Linse
d9acfbd471 options: mark nonfunctional &termencoding option as hidden. #2631
Remove related dead code and references in the docs.

Helped-By: Michael Reed <m.reed@mykolab.com>
Helped-By: Shougo Matsushita <Shougo.Matsu@gmail.com>
2015-05-17 18:39:25 +02:00
Justin M. Keyes
f4423c9697 Merge #2620 'repurpose legacy v:servername' 2015-05-17 02:17:34 -04:00
Justin M. Keyes
85c51baf06 passing-by: get_vim_var_str: mark non-null return 2015-05-17 02:17:34 -04:00
Justin M. Keyes
84443f176e doc: v:servername, serverstart() 2015-05-17 02:17:34 -04:00
Justin M. Keyes
64c7a36933 test: v:servername, serverstart(), serverstop() 2015-05-17 02:17:34 -04:00
Justin M. Keyes
3e4534f40f server: repurpose legacy v:servername
- On startup, v:servername is equivalent to $NVIM_LISTEN_ADDRESS
- v:servername may be considered the "default" server address
- v:servername does not change unless the associated server is stopped
  by serverstop()
2015-05-17 02:17:34 -04:00
David Bürgin
7a7d082e12 vim-patch:7.4.562 #2593
Problem:    Segfault with wide screen and error in 'rulerformat'. (Ingo Karkat)
Solution:   Check there is enough space. (Christian Brabandt)

https://github.com/vim/vim/commit/v7-4-562
2015-05-16 23:46:29 -04:00
David Bürgin
f525284778 vim-patch:7.4.594 #2654
Problem:    Using a block delete while 'breakindent' is set does not work
            properly.
Solution:   Use "line" instead of "prev_pend" as the first argument to
            lbr_chartabsize_adv().  (Hirohito Higashi)

https://github.com/vim/vim/commit/v7-4-594

See https://groups.google.com/d/msg/vim_dev/B8k0AVlqMUU/qKXeY8srpGcJ
2015-05-16 18:39:39 -04:00
Justin Gassner
9b87955b34 vim-patch:7.4.{629,695,696,701} Mark as included #2666
https://github.com/vim/vim/commit/v7-4-629
https://github.com/vim/vim/commit/v7-4-695
https://github.com/vim/vim/commit/v7-4-696
deal with coverity issues which were fixed by #1947

https://github.com/vim/vim/commit/v7-4-701
fixes a compiler warning for an uninitialized variable introduced in 695
2015-05-16 16:05:28 -04:00
Michael Reed
6f72f56492 Change 'backspace' default to "indent,eol,start" #2639
While here, alphabetically sort section 2 of vim_diff.txt

Helped-by: Jakob Schnitzer <mail@jakobschnitzer.de>
Helped-by: Felipe Morales <hel.sheep@gmail.com>
2015-05-15 16:28:57 -04:00
Florian Walch
a822118e64 Merge #2495 'third-party dependencies for Windows'. 2015-05-15 17:55:02 +03:00
Rui Abreu Ferreira
43c767ba78 AppVeyor: MSVC builds for third-party/ 2015-05-15 17:55:02 +03:00
Rui Abreu Ferreira
f65614fb1c Travis: Add Mingw third-party builds
- Build third-party/ in Travis using mingw
- Import mingw-w64 cmake toolchain
2015-05-15 17:55:02 +03:00
Rui Abreu Ferreira
cca32e64cc CMake: Build third-party deps in Windows
- Update recipes to build with MSVC or cross compile in Unix with Mingw
- For recipes that need to be reused, wrap recipe in CMake function
  using cmake_parse_arguments
- New directory .deps/host is the install root for HOST targets, the old
  .deps/usr is used for TARGET
- In windows disable builds for terminal libraries and jemalloc
- Added cmake script CopyFilesGlob.cmake to copy files using glob
    cmake -DFROM_GLOB=*.h -DTO=/usr/include -P CopyFilesGlob.cmake
- New CMake variables HOSTDEPS_* can be used in cross compile recipes.
  Except when the target is UNIX, since that would break 32bit builds
  in 64bit Unix systems using the Travis 32bit toolchain
2015-05-15 17:55:01 +03:00
Rui Abreu Ferreira
73dbd14283 CMake: Dont search for Make in Windows 2015-05-15 17:55:01 +03:00
Michael Reed
8814e275cf Merge pull request #2643 from glts/mark-na-patches
[RFC] vim-patch: Mark patches as NA
2015-05-14 15:12:25 -04:00
David Bürgin
eaf937ff2c vim-patch:7.4.{592,596,632}: Mark as NA
Original commit message for patch 7.4.592:

Problem:    When doing ":e foobar" when already editing "foobar" and 'buftype'
            is "nofile" the buffer is cleared. (Xavier de Gaye)
Solution:   Do no clear the buffer.

https://github.com/vim/vim/commit/v7-4-592

The change in this patch was amended in patch 7.4.596 to fix an #ifdef
problem, but soon after, in patch 7.4.632, it was reverted wholesale.

See https://groups.google.com/d/msg/vim_dev/SWw5znc3W-8/TDjkUVYfABIJ
2015-05-14 09:55:19 +02:00
David Bürgin
a0a60e6e97 vim-patch: Mark patches as NA
These changes do not apply because a) they apply to removed code,
or b) they address problems to do with #ifdef'ed code.

Marks the following patches as NA:
- 7.4.610, https://github.com/vim/vim/commit/v7-4-610
- 7.4.618, https://github.com/vim/vim/commit/v7-4-618
- 7.4.619, https://github.com/vim/vim/commit/v7-4-619
- 7.4.621, https://github.com/vim/vim/commit/v7-4-621
- 7.4.622, https://github.com/vim/vim/commit/v7-4-622
- 7.4.625, https://github.com/vim/vim/commit/v7-4-625
- 7.4.626, https://github.com/vim/vim/commit/v7-4-626
- 7.4.638, https://github.com/vim/vim/commit/v7-4-638
- 7.4.647, https://github.com/vim/vim/commit/v7-4-647
- 7.4.648, https://github.com/vim/vim/commit/v7-4-648
- 7.4.650, https://github.com/vim/vim/commit/v7-4-650

One trivial change had already been included, so the patch number was
uncommented:

- 7.4.599, https://github.com/vim/vim/commit/v7-4-599
2015-05-14 09:55:19 +02:00
Michael Reed
94d784358f Merge pull request #2605 from Pyrohh/manpages
[RDY] Rewrite English man pages in mdoc, update for Nvim
2015-05-13 19:55:45 -04:00
Mark Bainter
7747bf64d8 minor cleanup. #2610
Update vim_isAbsName() to use bool type
cleanup casts in vim_findfile() and recover_names()

References #2470
2015-05-13 19:42:31 -04:00
Michael Reed
3a3a6bee0d nvim --help text: Unify with manpages 2015-05-13 18:16:51 -04:00
Michael Reed
e1c71993b3 English man pages: Convert to mdoc and rewrite for Nvim
Helped-by: Felipe Morales <hel.sheep@gmail.com>
Helped-by: Scott Prager <splinterofchaos@gmail.com>
Helped-by: Justin M. Keyes <justinkz@gmail.com>
Helped-by: Jakob Schnitzer <mail@jakobschnitzer.de>
2015-05-13 18:16:51 -04:00
Michael Reed
0086c0a53b Man pages: Move to nvim namespace and out of runtime/
Also clean up man page references in `runtime/doc/Makefile` as it
doesn't deal with them anymore.
2015-05-13 18:16:51 -04:00
Michael Reed
b0b3076995 main.c: Make '-v' synonymous with '--version'
This is done for consistency with '-h' and '--help'.
While here, also move the mch_exit() call out of usage
to make it clear what is being done.

Helped-by: Justin M. Keyes <justinkz@gmail.com>
2015-05-13 18:16:51 -04:00
Michael Reed
de7332c0f5 Merge pull request #2634 from Pyrohh/localmk-update
[RFC] contrib: Update local.mk
2015-05-13 17:37:36 -04:00
Michael Reed
75a884c41d ci: Remove USE_JEMALLOC reference
It was removed in 8130eb1191
2015-05-13 17:37:19 -04:00
Michael Reed
1e72b2e6bd contrib: Update local.mk
DUSE_JEMALLOC was removed in 8130eb1191

Helped-by: Florian Walch <florian@fwalch.com>
Helped-by: John Szakmeister <john@szakmeister.net>
2015-05-13 17:37:19 -04:00
Michael Reed
e888c479f3 Merge pull request #2619 from Pyrohh/char_u-to-char
[RDY] Remove char_u (6)
2015-05-13 15:31:40 -04:00
Michael Reed
af3381b319 Remove char_u: Review
Helped-by: Scott Prager <splinterofchaos@gmail.com>
2015-05-13 15:29:50 -04:00
Michael Reed
62bcd98ae3 Remove char_u: message:smsg_attr() 2015-05-13 15:29:50 -04:00
Michael Reed
3c5864772f Remove char_u: message:smsg() 2015-05-13 15:29:50 -04:00
Michael Reed
d666b0e48f Remove char_u: ex_docmd:get_view_file() 2015-05-13 15:29:49 -04:00
Michael Reed
743a0aa7f1 Remove char_u: main:use_vimrc 2015-05-13 15:29:49 -04:00
Michael Reed
b4534ba578 Remove char_u: main:process_env()
In addition, make static and modernize function comment
2015-05-13 15:29:49 -04:00
Michael Reed
5e60180a1e Remove char_u: ex_docmd:do_cmdline_cmd() 2015-05-13 15:29:49 -04:00
David Bürgin
af4b0a76a7 vim-patch:7.4.587 #2622
Problem:    Conceal does not work properly with 'linebreak'. (cs86661)
Solution:   Save and restore boguscols. (Christian Brabandt)

https://github.com/vim/vim/commit/v7-4-587
2015-05-13 03:15:52 -04:00
Justin M. Keyes
6a1d89462b Merge #2623 'vim-patch:7.4.577' 2015-05-13 03:10:25 -04:00
David Bürgin
5e1d52a708 Passing by: regexp_nfa.c: Convert add_here variable to bool 2015-05-13 03:10:25 -04:00
David Bürgin
de6b3fbb15 vim-patch:7.4.577
Problem:    Matching with a virtual column has a lot of overhead on very long
            lines. (Issue 310)
Solution:   Bail out early if there can't be a match. (Christian Brabandt)
            Also check for CTRL-C at every position.

https://github.com/vim/vim/commit/v7-4-577

See also https://code.google.com/p/vim/issues/detail?id=310

Slightly adapted due to the long_u refactoring in
2ceb1c74d5.
2015-05-13 03:10:24 -04:00
David Bürgin
2498314876 vim-patch:7.4.581: Mark as NA #2624
Problem:    Compiler warnings for unitinialized variables. (John Little)
Solution:   Initialize the variables.

https://github.com/vim/vim/commit/v7-4-581

Not applicable. Depended on patch 7.4.560, which was NA, see #1743.
2015-05-11 21:27:46 -04:00
John Szakmeister
7ff582f86c Merge pull request #2616 from jszakmeister/update-busted-dependencies
build: update dependencies for busted
2015-05-11 07:04:41 -04:00
John Szakmeister
f0ab7c2ec1 third-party: use the official jemalloc tarball
This avoids messages to stderr about VERSION being missing, and allows
us to skip the autogen step.
2015-05-11 07:02:47 -04:00