Commit Graph

3141 Commits

Author SHA1 Message Date
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
Björn Linse
da85859567 clipboard: more register tests for delete 2015-01-27 19:43:25 -05:00
Björn Linse
d7aea1d7cc clipboard: don't clobber "0 when deleting to unnamed 2015-01-27 19:43:25 -05:00
Eliseo Martínez
475d0e213c Remove spurious file 'del' left after old tests.
Executing old tests leaves an empty file 'del' that doesn't get removed
by `make clean`.
2015-01-27 18:35:48 -05:00
Justin M. Keyes
6bc8c7be3a Merge pull request #1867 from elmart/nonnull-deadcode
Remove deadcode due to nonnullret funcs.
2015-01-26 21:08:52 -05:00
Michael Reed
75a1006a20 api/*.c: Comment cleanup
- @justinmk: Clarify comments
- Match verbiage used in other api/*.c files
- Fix a few typos/missing words
2015-01-26 20:02:53 -05:00
Eliseo Martínez
5deb06597c Remove nonnullret deadcode: xmalloc & xrealloc. 2015-01-27 01:33:34 +01:00
Eliseo Martínez
00f18e2e09 Remove nonnullret deadcode: xmalloc. 2015-01-27 01:33:34 +01:00
Eliseo Martínez
883e3a7a73 Remove nonnullret deadcode: xcalloc. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
73c6bd8a42 Remove nonnullret deadcode: viminfo_readstring. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
d228b8a93e Remove nonnullret deadcode: vim_strsave. 2015-01-27 01:33:33 +01:00
Eliseo Martínez
ce5b476dd9 Remove nonnullret deadcode: transstr. 2015-01-27 01:33:32 +01:00
Eliseo Martínez
46065f6978 Remove nonnullret deadcode: str_foldcase & vim_strnsave. 2015-01-27 01:33:32 +01:00
Eliseo Martínez
8d6778a4d1 Remove nonnullret deadcode: home_replace_save. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
d4d569d561 Remove nonnullret deadcode: getroom. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
bd7e007c6d Remove nonnullret deadcode: enc_canonize. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
c94863dec4 Remove nonnullret deadcode: addstar. 2015-01-27 01:33:31 +01:00
Eliseo Martínez
2ad0ca9c76 Remove nonnullret deadcode: Mark new nonnullret functions. 2015-01-27 01:33:31 +01:00
Felipe Morales
6425627c3f tools: add .clang-format
Configuration for clang-format and related utilities.

Examples:

    clang-format -style=file <file>
    git clang-format -style=file <commit>
    git diff -U0 HEAD^ | clang-format-diff.py -i -p1 -style=file
2015-01-26 21:10:14 -03:00
Justin M. Keyes
d30464264a Merge 'vim-patch: Small patches' #1873 2015-01-26 02:19:42 -05:00
Florian Walch
b994c5c515 vim-patch: Mark 7.4.522, 7.4.591 as NA. 2015-01-26 02:19:15 -05:00
Florian Walch
4ef289e761 vim-patch:7.4.517
Problem:    With a wrapping line the cursor may not end up in the right place.
            (Nazri Ramliy)
Solution:   Adjust n_extra for a Tab that wraps. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-517
2015-01-26 02:19:14 -05:00
Florian Walch
51aacc2dea vim-patch:7.4.514
Problem:    Memory access error. (Dominique Pelle)
Solution:   Update tpos. (Christian Brabandt)

https://code.google.com/p/vim/source/detail?r=v7-4-514
2015-01-26 02:19:14 -05:00
Florian Walch
0f2d02569c vim-patch:31f7581
Update runtime files and translations.

https://code.google.com/p/vim/source/detail?r=31f7581068a9c3119e3bd2cd74160eb8282c3c6e
2015-01-26 02:17:13 -05:00
glebtv
c88ad49cf1 fix #1839: decrement mouse row and col
- regression by 04c0658024
2015-01-26 01:48:52 -05:00
Michael Reed
5b8d84d2c2 Remove '+float' references
The corresponding code was already removed in
b4ca3abc9f
2015-01-24 16:50:42 -05:00
Michael Reed
f4ad8e875c hardcopy.c: Factor out float usage 2015-01-24 16:50:42 -05:00
Justin M. Keyes
65adcc2699 Merge pull request #1865 from Pyrohh/main-improvements
main.c improvements
2015-01-23 18:16:40 -08:00
Michael Reed
9381004066 main.c: Misc. improvements
- Constify parameters and reduce char_u usage
- Modernize function signatures
- Modernize function comment blocks, rewriting if needed
- Factor out mainerr_arg_missing(); all the other ME_* macros lack
  such a wrapper function.

main_errors[]
  - Remove unneeded parentheses
  - Remove an unused error string and its respective macro

mainerr()
  - Don't print version when called. mainerr() only handles errors
    related to command line arguments, so the version isn't much help at
    all.
  - Changed 'vim' instance to 'nvim'

Misc.
  - Remove duplicate include
  - Replace unneeded 'inttypes.h' include with 'stdint.h'
  - Remove stray comments
  - Remove excessive newlines
2015-01-23 19:59:57 -05:00
Michael Reed
1a40013bec main.c: Enable -Wconversion 2015-01-23 19:42:21 -05:00
Thiago de Arruda
a6a75718a2 Merge PR #1879 'Migrate legacy test 107' 2015-01-23 21:17:26 -03:00
Thiago de Arruda
8a363360dc test: Migrate legacy test 107
This test depends on terminal size to work correctly. After migration this
requirement is removed.
2015-01-23 20:46:27 -03:00
Thiago de Arruda
d84cbfa4dc Merge PR #1877 'Fix functional test suite hang when a test fails' 2015-01-23 19:36:11 -03:00
Thiago de Arruda
cbc23d93b9 test: Make default screen timeout depend on the VALGRIND env var
While running under valgrind, the screen can take significantly longer to
update(especially on travis) so a higher timeout can be required. Also reduce
the timeout when not running on valgrind.
2015-01-23 19:00:45 -03:00
Thiago de Arruda
41225fe4f6 test: Fix hanging test suite after failures
When a test that fails leaves nvim in a 'Press Enter...' state, the whole suite
will hang because the `qa!` command executed before the next test won't be
processed until '<enter>' is sent.

Now the lua client can send a signal with when `Session:exit()` is called, so
the `qa!` request is no longer necessary.

Also:

- Set noswapfile at startup to prevent tests from leaving .s* swap files(should
  also improve test environment determinism)
- Use `assert(false, msg) instead of `error(msg)` to report screen assertion
  failures.
2015-01-23 18:58:19 -03:00