Commit Graph

1807 Commits

Author SHA1 Message Date
Thiago de Arruda
549fc9548d test: Move 'test/legacy' to 'test/functional'
Busted can only discover tests from a single directory. In order to allow tests
under 'legacy' to run as a functional test, it needed to be moved to
'test/functional'.
2014-10-01 09:05:28 -03:00
Thiago de Arruda
1f622d63bc Merge PR #1257 'Use line-specific method names where possible' 2014-10-01 05:48:51 -03:00
Paul Jolly
8575f1b52a Use line-specific method names where possible to remove ambiguity and possibility of future clashes 2014-10-01 05:48:35 -03:00
Justin M. Keyes
8a14268ab9 Merge pull request #1141 from splinterofchaos/system-nl
vim-patch:7.4.247 + vim-patch:7.4.248 + vim-patch:7.4.256 + f_system() bug fix
2014-09-30 23:03:48 -04:00
Scott Prager
01fc01e5d6 Implement save_tv_as_string to assist in #1176. 2014-09-30 20:53:26 -04:00
Scott Prager
3928acb032 Fix system() output truncation bug.
Replace NULs with SOH to restore the old behaviour of get_cmd_output().
2014-09-30 19:35:47 -04:00
Scott Prager
44b187dd01 Old-style test for system(list). 2014-09-30 19:35:47 -04:00
Scott Prager
b0bda2ee87 vim-patch:7.4.256
Problem:    Using systemlist() may cause a crash and does not handle NUL
            characters properly.
Solution:   Increase the reference count, allocate memory by length. (Yasuhiro
            Matsumoto)

https://code.google.com/p/vim/source/detail?r=v7-4-256
2014-09-30 19:35:46 -04:00
Scott Prager
78979427d1 Return list from rettv_list_alloc. 2014-09-30 19:35:46 -04:00
Scott Prager
566ce93135 vim-patch:7.4.248
Problem:    Cannot distinguish between NL and NUL in output of system().
Solution:   Add systemlist(). (ZyX)

https://code.google.com/p/vim/source/detail?r=v7-4-248
2014-09-30 19:35:46 -04:00
Scott Prager
d3cd3d2b8f vim-patch:7.4.247
Problem:    When passing input to system() there is no way to keep NUL and
            NL characters separate.
Solution:   Optionally use a list for the system() input. (ZyX)

https://code.google.com/p/vim/source/detail?r=v7-4-247

Implement write_list_to_string() as well since write_list() only works
on files.
2014-09-30 19:35:46 -04:00
Scott Prager
07bfc11448 memory: memchrsub and strchrsub 2014-09-30 19:35:42 -04:00
Scott Prager
eff839b26d memory: xstrchrnul and xmemscan. 2014-09-30 19:33:48 -04:00
Thiago de Arruda
afe7ba1e71 Merge PR #1258 'Replace vroom by lua/busted for functional tests' 2014-09-30 18:00:20 -03:00
Thiago de Arruda
911acd22d8 travis: Refactor {valgrind,asan}_check functions
Put all logic into the `check_logs` function and use the `find` command to avoid
having to deal with empty directory errors when globbing files.
2014-09-30 17:39:13 -03:00
Thiago de Arruda
42d5b526b9 test: Replace vroom by lua/busted for functional tests
The 'lupa' python package provides a simple way to seamless integrate lua and
python code.

This commit replaces vroom by a python script that exposes the 'neovim' package
to a lua state, and invokes busted to run functional tests. This is a temporary
solution that will enable writing functional tests using lua/bused while a lua
client library is not available.

The reason for dropping vroom is flexibility: Lua/busted has a nice DSL-style
syntax while also providing the customization power of a full programming
language. Another reason is to use a single framework for unit/functional tests.

Two other changes were performed in this commit:

- Instead of "gcc-unittest/gcc-ia32", the travis builds for gcc are now
  identified by "gcc/gcc-32". They will run unit/functional tests for both 64
  and 32 bits.
- Old integration tests(in src/nvim/testdir) are now ran by the 'oldtest' target
2014-09-30 17:37:16 -03:00
Justin M. Keyes
4b0f524915 Merge pull request #1225 from mhinz/p7.4.454
vim-patch:7.4.454
2014-09-26 16:08:48 -04:00
Justin M. Keyes
d97a8e312e Merge pull request #1209 from atwupack/vp-7.4.320
vim-patch:7.4.320
2014-09-26 16:05:49 -04:00
Justin M. Keyes
f7bb349848 Merge pull request #1220 from atwupack/vp-7.4.411
vim-patch:7.4.411
2014-09-26 16:02:32 -04:00
Justin M. Keyes
176f16066b Merge pull request #1219 from atwupack/vp-7.4.386
vim-patch:7.4.386
2014-09-26 15:59:51 -04:00
Justin M. Keyes
d41eb83019 Merge pull request #1236 from atwupack/vp-7.4.391
vim-patch:7.4.391
2014-09-26 15:57:50 -04:00
Justin M. Keyes
ea26283cf6 Merge pull request #1238 from joshhartigan/zero-division-patch
clang: Division by zero
2014-09-25 01:54:39 -04:00
joshhartigan
5b54f3fd5e clang: Division by zero 2014-09-25 06:40:59 +01:00
Wayne Rowcliffe
7aca07b0a7 Remove W_NEXT use ->w_next 2014-09-24 19:00:50 -05:00
Wayne Rowcliffe
9b6f192693 Replace FOR_ALL_WINDOWS with FOR_ALL_WINDOWS_IN_TAB(curtab) 2014-09-24 19:00:50 -05:00
André Twupack
78d17e1f78 vim-patch:7.4.391
Problem:    No 'cursorline' highlighting when the cursor is on a line with
            diff highlighting. (Benjamin Fritz)
Solution:   Combine the highlight attributes. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-391
2014-09-24 21:08:57 +02:00
John Szakmeister
bd1ecad4f1 Merge #1229 'Only use CMAKE_C_COMPILER_ARG1 if it is set' 2014-09-24 04:06:31 -04:00
Paul Jolly
c24dad3e59 Only use CMAKE_C_COMPILER_ARG1 if it is set 2014-09-24 04:06:20 -04:00
Marco Hinz
28429ffbf0 Update version.c to 7.4.454 2014-09-23 23:48:37 +02:00
Marco Hinz
4afd8f92ae vim-patch:7.4.454
Problem:  When using a Visual selection of multiple words and doing
          CTRL-W_] it jumps to the tag matching the word under the
          cursor, not the selected text.  (Patrick hemmer)

Solution: Do not reset Visual mode. (idea by Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=0cdff7c268559f8f34eae073a013ece71b62b9e3
2014-09-23 23:13:09 +02:00
Justin M. Keyes
7e330496a7 Merge pull request #1224 from mhinz/p7.4.405
vim-patch:7.4.405
2014-09-23 13:59:14 -04:00
Marco Hinz
366f358a62 vim-patch:7.4.405
Problem:  Screen updating is slow when using matches.
Solution: Do not use the ">=" as in patch 7.4.362, check the lnum.

https://code.google.com/p/vim/source/detail?r=v7-4-405
2014-09-23 16:46:36 +02:00
Justin M. Keyes
21f1802b8a Merge pull request #1207 from atwupack/vp-7.4.407
vim-patch:7.4.407
2014-09-22 22:06:39 -04:00
Justin M. Keyes
3b04379164 Merge pull request #1210 from atwupack/vp-7.4.360
vim-patch:7.4.360
2014-09-22 22:02:14 -04:00
André Twupack
1a7c83d77d vim-patch:7.4.411
Problem:    "foo bar" sorts before "foo" with sort(). (John Little)
Solution:   Avoid putting quotes around strings before comparing them.

https://code.google.com/p/vim/source/detail?r=v7-4-411
2014-09-22 21:38:48 +02:00
André Twupack
57d497c51b vim-patch:7.4.386
Problem:    When splitting a window the changelist position is wrong.
Solution:   Copy the changelist position. (Jacob Niehus)

https://code.google.com/p/vim/source/detail?r=v7-4-386
2014-09-22 20:46:28 +02:00
Justin M. Keyes
1c84a0e090 Merge pull request #1108 from war1025/dev/for_all_tabs
FOR_ALL_TAB_WINDOWS cleanup. Add FOR_ALL_TABS and FOR_ALL_WINDOWS_IN_TAB.
2014-09-22 13:38:58 -04:00
Wayne Rowcliffe
22bd722c01 Expand FOR_ALL_WINDOWS to FOR_ALL_WINDOWS_IN_TAB(curtab) 2014-09-22 09:31:09 -05:00
Wayne Rowcliffe
683bc797a0 FOR_ALL_WINDOWS_IN_TAB and local variables in FOR_ALL_TAB_WINDOWS 2014-09-22 09:31:09 -05:00
Wayne Rowcliffe
b4ec6c1a4b FOR_ALL_TABS helper 2014-09-22 09:26:40 -05:00
John Szakmeister
a4b9e0df67 Merge #1213 'Fix install permissions' 2014-09-22 05:56:59 -04:00
John Szakmeister
0d35369324 build: install with the correct permissions
The install() command will create the parent directories, but it does so
with the user's umask.  We want to do our best to make sure the correct
permissions are being set, without clobbering existing permissions.

To do this, this commit introduces an install_helper(), which is similar
in signature to the install() command, to help ensure that directories
are created ahead of the actual install() command.  This will attempt to
use 0644 permissions for files and 0755 permissions for directories by
default--though they can be overridden.

To make this work correctly, without trying to introduce some mechanism
with setting the umask, it meant that there's a small portion that makes
use of an "internal" version of the file() command.  It has been tested
on CMake 2.8.11, 2.8.12, and 3.0.2, and works correctly on all versions.

This fixes #1201 and #1086.
2014-09-22 05:56:52 -04:00
John Szakmeister
ba7472c54d runtime: fix executable bit on some files 2014-09-22 05:56:52 -04:00
Justin M. Keyes
2f212ca2eb Merge pull request #1011 from stefan991/cleanup-docs
Cleanup user documentation build
2014-09-21 11:54:34 -04:00
Stefan Hoffmann
bb176f4a7e doc: fix links to index.html and vimindex.html 2014-09-21 15:20:21 +02:00
André Twupack
2b937fe00d vim-patch:7.4.320
Problem:    Possible crash when an BufLeave autocommand deletes the buffer.
Solution:   Check for the window pointer being valid.  Postpone freeing the
            window until autocommands are done. (Yasuhiro Matsumoto)

https://code.google.com/p/vim/source/detail?r=v7-4-320
2014-09-21 10:42:27 +02:00
André Twupack
e1517d4f53 vim-patch:7.4.360
Problem:    In a regexp pattern a "$" followed by \v or \V is not seen as the
            end-of-line.
Solution:   Handle the situation. (Ozaki Kiichi)

https://code.google.com/p/vim/source/detail?r=v7-4-360
2014-09-21 01:08:03 +02:00
Justin M. Keyes
0ed9f3ec83 Merge pull request #1197 from Shougo/vim-patch-7.4.392
vim-patch:7.4.392
2014-09-20 18:57:10 -04:00
Justin M. Keyes
9d4e8fffa1 Merge pull request #1204 from Shougo/version-7.4.444
Update version.c to Vim 7.4.444
2014-09-20 18:55:41 -04:00
Shougo Matsushita
0171d4a269 Update version.c to Vim 7.4.444 2014-09-21 06:46:10 +09:00