Commit Graph

2825 Commits

Author SHA1 Message Date
Thiago de Arruda
710af834d6 Merge PR #1973 'Add Luajit compilation flags to improve debugging' 2015-02-10 11:20:46 -03:00
Thiago de Arruda
daba57c512 deps: Update lua-client
The new version sets a custom panic function that prints the lua traceback
before exiting.
2015-02-10 10:57:15 -03:00
Thiago de Arruda
4c92a0baca deps: Add Luajit compilation flags to improve debugging 2015-02-10 09:57:24 -03:00
John Szakmeister
b0044fa5c3 Merge pull request #1922 from jszakmeister/fix-build-under-opensuse-x64
Fix #1920: Unable to build on openSUSE 13.2 x64
2015-02-10 05:46:05 -05:00
Michael Reed
ec5e94518e build: upgrade msgpack-c #1900
closes #1899
closes #1967

refs https://github.com/msgpack/msgpack-c/pull/194
2015-02-09 23:51:02 -05:00
Michael Reed
b0b9a33e62 doc: man pages: restore removed line. #1968
Accidentally done in 7b98b4c442
2015-02-09 18:56:19 -05:00
John Szakmeister
3562f686b0 Get rid of a bashism in the fs_spec test. #1964
FreeBSD doesn't use bash by default, causing the group id to be print
out in the middle of the test.
2015-02-09 12:44:22 -05:00
John Szakmeister
b0fb7ea19d Merge pull request #1951 from jszakmeister/split-hash-checking
build: split hash checking from the download step
2015-02-09 09:21:36 -05:00
John Szakmeister
aa45a2c6cf build: allow SKIP or skip to be used as the SHA1
This will skip hash checking, just like the all zeros hash.
2015-02-09 06:30:17 -05:00
John Szakmeister
2019380bfa build: split hash checking from the download step
It turns out that `file(DOWNLOAD ...)` is not very user friendly with
it's error message, and only supports MD5 on v2.8.10 of CMake (the
default for Ubuntu 12.04).  If CMake is built without SSL support,
users are left hanging with a message that the hashes don't match.

It turns out that `file(SHA1 ...)` exists in v2.8.10, and we
can use that to compute the hash ourselves.  So this splits the hash
checking into a separate step, where we can provide some additional
advice if the SHA1 is the hash for an empty file.  Additionally, it also
allows us to drop the MD5 hashes and maintain only SHA1 hashes for our
dependencies.
2015-02-09 06:30:17 -05:00
Joel Teichroeb
7ab0fcdd94 doc/options.txt: remove 'compatible' #1925 2015-02-09 00:18:38 -05:00
Michael Reed
10b2a0e529 Remove 'ttyfast'
refs #1045 #1051

This was enabled by default a while ago (#1051), and has apparently not
created any issues.  The amount of actual code related to it is tiny, so
it has been removed.
2015-02-08 17:46:09 -05:00
Eliseo Martínez
0854c21af3 Merge pull request #1957 from elmart/clint-pep8
Merge PR #1957 'Make clint.py pep8-compliant'
2015-02-08 21:41:41 +01:00
Eliseo Martínez
df3b509c98 Make clint.py pep8-compliant. 2015-02-08 19:47:06 +01:00
Thiago de Arruda
28dcfcf325 Merge PR #1948 'Remove nondeterminism in systemlist interrupt tests' 2015-02-06 15:58:27 -03:00
Thiago de Arruda
11fa4f42fd test: Remove nondeterminism in systemlist interrupt tests
The systemlist test currently calls the `echo` command which can potentially
complete before being interrupted, causing random test failures.

Use `yes | xargs` instead. A `yes` invocation that is not piped through `xargs`
can produce a huge amount of lines in a very short time, leading memory
starvation when the result is being converted into a list. `xargs` ensures only
one line of output will be produced while allowing interrupt to be tested.
2015-02-06 15:24:08 -03:00
Florian Walch
281cd3856c CMake: Hide stderr output for successful test runs.
Fixes #1301.
2015-02-06 13:39:23 +01:00
Justin M. Keyes
98413a4932 doc: diff-mode: minor adjustments 2015-02-03 18:52:18 -05:00
Michael Reed
a720b64851 Remove vimdiff: Review suggestions 2015-02-03 16:51:41 -05:00
Michael Reed
7b98b4c442 Remove vimdiff
While we're here:
- Remove references to the '+diff' feature, which has since been made
  non-optional.
- Update a few Vim instances with Nvim.
2015-02-03 15:15:54 -05:00
Michael Reed
054aabbe06 main.c: usage() improvement
- Factor out main_msg() in favor of mch_msg() and manual indentation, as to
  provide a much closer representation to the actual output of '--help'.
  'gcc -E' reveals that main_msg() only consists of 3 printf calls
  anyways.
- Factor out for loop used for printing top part of usage text; just
  print the text normally.

usage() text:
- Don't print the version; that's what '--version' is for.
- Be consistent about nomenclature, e.g. '<arg>' denotes required
  argument, '-h | --help' denotes '-h' and '--help' are equivalent, etc.
- Change some instances of vim{,rc,info} to nvim
2015-02-03 13:58:38 -05:00
Lucas Hermann Negri
7751cd21f5 Enable -Wconversion for version.c #1923 2015-02-02 17:23:24 -05:00
Thiago de Arruda
f90c9b9105 deps: Fix libuv md5sum 2015-02-02 15:36:13 -03:00
Thiago de Arruda
3d167c49d2 Merge PR #1883 'More work on highlight tests + update documentation' 2015-02-02 14:57:15 -03:00
Björn Linse
f468fb70cb api/vim: allow guis and tests to retrieve the entire color table 2015-02-02 14:56:58 -03:00
Björn Linse
ae2b747e64 test/ui: update documentation for screen tests 2015-02-02 14:56:58 -03:00
Björn Linse
b78265e9b7 test/ui: enable strict mode by default (and in existing tests) 2015-02-02 14:56:58 -03:00
Björn Linse
97ac9f5c1d test/ui: more informative "unexpected highlight" errors 2015-02-02 14:56:58 -03:00
Florian Walch
2eda611cbc Travis: Fail fast, disable JIT for functional tests.
Disable JIT to find cause for random `PANIC: unprotected error in call to Lua API` on Travis (OS X).
2015-02-02 17:23:03 +01:00
Justin M. Keyes
6360be982f Merge #1896 'Fix coverity issues. (3)' 2015-02-02 01:21:58 -05:00
Eliseo Martínez
bb674e0fcd coverity/13810: Unitialized scalar variable: HI.
Problem    : Unitialized scalar variable @ 3239.
Diagnostic : Harmless issue.
Rationale  : It's true pos.coladd is not initialized when calling
             searchit(). But that's no problem, as coladd is only set in
             that function.
Resolution : Initialize variable to 0.
2015-02-02 01:21:58 -05:00
Eliseo Martínez
4d0ef9a6b9 coverity/13745: Argument cannot be negative: RI.
Problem    : Argument cannot be negative @ 1165.
Diagnostic : Real issue.
Rationale  : len can be assigned a negative value @ 1162;
             len is passed as an unsigned argument @ 1165.
Resolution : Refactor variable's types:
             - Use ftello instead of ftell to avoid using long.
             - Assert ftello result is safely convertible to size_t.
             - Introduce variable read_size to avoid using i (int).
2015-02-02 01:21:58 -05:00
Eliseo Martínez
323f0488c2 coverity/15019: String not null terminated: FP.
Problem    : String not null terminated @ 1165.
Diagnostic : False positive.
Rationale  : Code below terminates string (with NUL or '\n').
Resolution : Add explanatory comment, and assert termination.
             Mark as Intentional at coverity's database.
2015-02-02 01:21:58 -05:00
Eliseo Martínez
ab86da74c4 coverity/68610: Out-of-bounds access: FP.
Diagnostic : False positive.
Rationale  : Coverity thinks we are forgetting to add more char to hold
             NULL, but it's not taking into account that two chars from
             cntxformat will no be present in the result. In fact, we
             can even allocate one byte less than currently done.
Resolution : Add explanatory comment and allocate one less byte.
             Marked as "Intentional" at coverity's database.
2015-02-02 01:21:57 -05:00
Eliseo Martínez
828a18722c coverity/13750: Negative array index read: FP.
Problem    : Negative array index read @ 909.
Diagnostic : False positive.
Rationale  : Suggested error path assigns a negative value to idx at
             line 836 (`idx = find_command(ca.cmdchar);`). That's
             impossible, as `ca.cmdchar` is set to Ctrl_BSL just two
             lines above, so we know that value will be in the table.
Resolution : Assert idx >= 0.
2015-02-02 01:21:57 -05:00
Marco Hinz
4d70aae770 Add EndOfBuffer hl group for ~ lines after the last line in buffers
This makes it possible to highlight the lines starting with ~ at the end
of buffers and other elements highlighted using NonText.

As proposed by mhinz at
https://groups.google.com/forum/#!topic/vim_dev/p3de1iU1GXI/discussion
2015-02-02 01:16:41 -05:00
Michael Reed
84ca5f973d scripts/vim-patch: Allow equivalent shorthand args 2015-02-02 01:11:19 -05:00
John Szakmeister
75d5fcce04 Fix #1920: Unable to build on openSUSE 13.2 x64
The issue is that libuv decides to use ${PREFIX}/lib64 as the lib
directory instead of ${PREFIX}/lib.  Since we're just installing it to
provide access to the static library, let's just force the libdir to be
${PREFIX}/lib.
2015-02-01 07:09:21 -05:00
John Szakmeister
ed03d43d8b Fall back to libuv 1.2.0 and fix #1914.
It appears that commit 393c1c59a27591d705648919b2d7fb921cba37bc (unix:
set non-block mode in uv_{pipe,tcp,udp}_open) has broken Neovim's
drawing under OSX.  Let's revert to 1.2.0 until we can figure out what
is happening and get it fixed.
2015-02-01 06:53:28 -05:00
Justin M. Keyes
6196cab139 Merge pull request #1572 from fwalch/fix-osx
Fix OS X builds.
2015-01-30 13:32:22 -05:00
Thiago de Arruda
41fe3cb196 Merge PR #1799 'Update to libuv 1.3.0' 2015-01-30 09:31:53 -03:00
Michael Reed
d4354759d3 Update to libuv 1.3.0 2015-01-30 09:30:59 -03:00
Florian Walch
4e5f083c0b Travis: Run unit tests for Clang build. 2015-01-30 11:29:33 +01:00
Florian Walch
2e28f78971 Travis: Fix OS X builds. 2015-01-29 16:52:47 +01:00
Thiago de Arruda
fa441658b1 Merge PR #1907 'Fix functional test problems' 2015-01-29 12:31:23 -03:00
Thiago de Arruda
bdba32ffd9 test: Mark unreliable test as pending in job_spec.lua
`job_send` is non-blocking and can potentially fail due to the following
`job_stop` call.  Since we can't reliably verify that the "exit" event is only
sent after the "stdout" event, mark the test as pending and fix after we can
get a notification about `job_send` status.
2015-01-29 11:52:56 -03:00
Thiago de Arruda
c5df2f38ff travis: Install neovim module for testing the python provider.
python_spec.lua depends on the python client installed.
2015-01-29 11:29:44 -03:00
Justin M. Keyes
9a3b1d1078 Merge pull request #1834 from Pyrohh/misc-float-double
Factor out float usage & remove '+float' references
2015-01-29 09:19:46 -05:00
John Szakmeister
9023f62707 Fix the ctrl + left click test.
The test was hoping to not find a tags file, but didn't actively guard
against it.  In my case, I had a tags file present which was causing
different output to be generated.  To fix this, let's set the tags
option to look for an unlikely filename.
2015-01-28 17:48:36 -05:00
Justin M. Keyes
997892157a Merge #1814 'clipboard: don't clobber "0 when deleting to unnamed' 2015-01-27 19:43:35 -05:00