Commit Graph

4054 Commits

Author SHA1 Message Date
Thiago de Arruda
c1edd07990 shell: Ensure silent bang mappings won't cut output
Setting `msg_didout` after `call_shell` is enough as it will cause
`hit_return_msg()` to print on next line.

Close #3269
2015-10-01 15:22:48 -03:00
Justin M. Keyes
afe8a32be0 Merge pull request #3410 from oni-link/fix.spell_suggest
spell.c: Fix memory leak
2015-10-01 13:22:02 -04:00
Justin M. Keyes
bb5bf96839 Merge pull request #3407 from oni-link/fix.ga_concat
garray.c: Prevent ga_concat() using memcpy(NULL,...)
2015-10-01 13:19:49 -04:00
Justin M. Keyes
bb155564d9 Merge pull request #3409 from jszakmeister/disable-broken-test
Disable a broken functional test.
2015-10-01 13:08:21 -04:00
John Szakmeister
625f8ec07f Disable a broken functional test.
No one has taken a real interest in fixing this, so let's disable it for
now.  The issue crops up most on the QB OS X node, but it has
periodically occurred under other nodes too.
2015-10-01 07:01:13 -04:00
oni-link
2fb77ba6f9 spell.c: Fix memory leak 2015-10-01 12:34:13 +02:00
Justin M. Keyes
30024dcdbd Merge pull request #3408 from fwalch/cmake/filter-ldflags
CMake: Remove --sort-common from linker flags.
2015-09-30 21:41:21 -04:00
Florian Walch
e8fdbd1cc4 CMake: Remove --sort-common from linker flags.
Workaround for bugs reported at #2641 and #3374.
Root cause for this problem is still unknown.

Resolves #2641 and resolves #3374.
2015-10-01 00:16:25 +02:00
oni-link
0320d86d3b garray.c: Prevent ga_concat() using memcpy(NULL,...)
Calling ga_grow(gap, 0) does not reallocate memory for garray gap.
Because of this, gap->ga_data can be NULL after such a call, if gap does
not have memory allocated.
2015-09-30 19:11:07 +02:00
Justin M. Keyes
463b24a951 Merge pull request #3365 from ZyX-I/refactor-string
Make `...` occurrences in echo output more useful
2015-09-30 10:56:05 -04:00
ZyX
b6fdb7bd0f eval/string(): Share code between msgpackdump() and string()+:echo 2015-09-30 10:12:35 +03:00
ZyX
0be94d1e5a functests: Do not use user viminfo file 2015-09-30 10:09:27 +03:00
ZyX
6da3fadd9f eval/msgpackdump(): Use copyID for protecting against recursive input
Should be faster then O(depth) iteration, but removes const qualifiers.
2015-09-30 10:09:21 +03:00
Justin M. Keyes
622ec95c3f Merge pull request #3321 from cHoco/fix-append-api-implementation-2
Fix append() with negative line numbers.
2015-09-27 20:33:19 -04:00
Justin M. Keyes
43dacff2ae Merge pull request #3398 from fmoralesc/update-vim-tutor
tutor-mode: update plugin
2015-09-27 10:45:06 -04:00
Felipe Morales
5ec5e9ae43 tutor-mode: update plugin 2015-09-27 15:17:20 +02:00
Florian Walch
ded4a50219 Merge #3316 'Travis: Install Python 3 Neovim module'. 2015-09-27 00:27:44 +02:00
Florian Walch
a3399f9a63 Travis: Install Python 3 to run Python 3 tests.
Install Python 3.3 from the Deadsnakes PPA. As this doesn't have pip,
install it manually into ~/.local.

~/.local/bin is apparently in Travis's default PATH, meaning "pip"
doesn't refer to Python 2's pip anymore, but to the manually
installed Python 3 version. Updated the scripts to use version-
suffixed executable names (e.g. pip2.7).

Set CC=cc to use system's default compiler when installing Python
modules, as gcc on OS X had a problem with compiling one of the
dependencies of the Neovim Python module.
2015-09-27 00:03:06 +02:00
Florian Walch
54596396bc test: Check for installed Python module with Vimscript function.
Use the existing Vimscript function provider#pythonx#Detect()
to determine whether the Neovim Python module is installed and
Python 2/3 tests can be run.
2015-09-27 00:03:06 +02:00
Justin M. Keyes
dbb5f41c97 Merge pull request #3395 from fmoralesc/revert-wildmode
defaults: revert wildmode to 'full'
2015-09-26 15:53:27 -04:00
Felipe Morales
b927304108 defaults: revert wildmode to 'full' 2015-09-26 21:09:47 +02:00
Justin M. Keyes
eaff0072e5 Merge pull request #3394 from justinmk/man.vim
man.vim
2015-09-25 22:39:15 -04:00
Justin M. Keyes
399864dc28 man.vim: Prevent sourcing in startup.
It is common practice for Vim users to
  :runtime! ftplugin/man.vim
in order to get the :Man command. That will cause weird settings for
non-man files.
2015-09-25 22:04:45 -04:00
Justin M. Keyes
af0ca25ba9 man.vim: avoid creating extra blank buffers. 2015-09-25 22:01:03 -04:00
Pavlos Vinieratos
e073074414 ex_menu: use bool. #3389 2015-09-25 21:15:10 -04:00
Justin M. Keyes
641c6420e1 Merge pull request #3384 from equalsraf/tb-vla
Remove VLA from path_get_absolute_path
2015-09-24 21:17:15 -04:00
Rui Abreu Ferreira
2c6f74d6d6 Enable compiler flag -Wvla 2015-09-24 17:41:03 +01:00
Rui Abreu Ferreira
e70d6283b6 Remove VLA from path_get_absolute_path
Remove the use of Variable Length Arrays in path_get_absolute_path(), and use
xmalloc/xfree instead.
2015-09-24 16:50:33 +01:00
cztchoice
ef5ee31452 Enable -Wconversion: if_cscope.c #3068
Helped-by: Gustaf Lindstedt <gustaflindstedt@gmail.com>
Helped-by: Wander Nauta <info@wandernauta.nl>
2015-09-23 21:43:29 -04:00
Justin M. Keyes
ba6c7a6f5b Merge pull request #1878 from justinmk/man.vim
use :Man instead of `man` for K
2015-09-23 00:28:32 -04:00
Justin M. Keyes
2169721b94 man.vim: accept [count] for section number. 2015-09-23 00:06:27 -04:00
Justin M. Keyes
b22b568266 test: K, 'keywordprg' 2015-09-23 00:06:27 -04:00
Justin M. Keyes
6eb78dcaaa nv_ident: sprintf => snprintf
Also fix some other clint errors.
2015-09-23 00:06:27 -04:00
Justin M. Keyes
3c32ae2ff3 man.vim: window-local options
Set window-local options only on a newly-created "man" tab or if we're
already in one.
2015-09-23 00:06:27 -04:00
Justin M. Keyes
45724e2c41 man.vim: man#get_page(): parse page and section.
- Eliminate man#pre_get_page().
- Temporarily remove () from 'iskeyword' to avoid spurious \k match.
2015-09-23 00:06:26 -04:00
Justin M. Keyes
4fb75d61c2 man.vim: convert ftplugin to actual plugin.
- do not create leader maps
- :norm! instead of :norm
- :keepjumps during layout
- use blackhole reg to avoid polluting unnamed reg
- format buffer name as "man://foo(2)"
- simulate behavior of `man`
    - buffer-local mapping of q to quit
    - open in new tab instead of new window
    - set 'nolist'
    - set tabstop=8
2015-09-23 00:05:33 -04:00
Justin M. Keyes
998d0ffc09 'keywordprg': support ex commands
- new feature: if the first character of 'keywordprg' is ":", the
  command is invoked as a Vim ex-command prefixed with [count].
- change default 'keywordprg' to :Man
2015-09-23 00:05:33 -04:00
Justin M. Keyes
481049e0c9 build: remove USEMAN_S 2015-09-23 00:05:32 -04:00
Felipe Morales
1ba081a673 Merge pull request #3289 from fmoralesc/update-jemalloc
third-party: update jemalloc to 4.0.2
2015-09-22 08:03:19 +02:00
Felipe Morales
e29c4bab2a third-party: update jemalloc to 4.0.2
jemalloc 4.0 adds support for OpenBSD, DragonFlyBSD and other platforms.

Release notes: https://github.com/jemalloc/jemalloc/releases/tag/4.0.0

4.0.1 and 4.0.2 are bugfix releases

Release notes: https://github.com/jemalloc/jemalloc/releases/tag/4.0.1
               https://github.com/jemalloc/jemalloc/releases/tag/4.0.2
2015-09-22 07:43:08 +02:00
Enrico Ghirardi
8ab09087da Fix append() without line argument
We want to switch include_start/end when the index is positive or
negative.
2015-09-20 12:38:41 +02:00
Justin M. Keyes
2417aeebbf Merge pull request #3359 from ZyX-I/fix-msgpack
Fix crash in msgpackparse function
2015-09-19 09:15:25 -04:00
ZyX
924058c00f eval/msgpackparse(): Fix crash by adding return at error 2015-09-19 01:54:43 +03:00
ZyX
c6102f9a9f functests: Test how msgpack\* functions behave with invalid input 2015-09-19 01:54:43 +03:00
ZyX
e881a20dfb functests: Split msgpack\* function tests into three groups:
- Tests that use both functions.
- Tests that use msgpackparse().
- Tests that use msgpackdump().
2015-09-19 01:54:43 +03:00
ZyX
10fd95a9ea functests/helpers: Add exc_exec function that checks the exception 2015-09-19 01:54:43 +03:00
Thiago de Arruda
e80d7c0df7 Merge PR #3309 'Fixes for 0.1' 2015-09-18 15:12:12 -03:00
Thiago de Arruda
e897ccad3e terminal: Don't store a buf_T reference in the terminal struct
Since vimscript can close buffers at any time, it is possible that a
refresh_timer_cb will be called with an invalid buffer, but there's no way to
detect this if only a reference is stored because the memory can be reused by
the allocator. Use buf_T->handle which is guaranteed to be unique.
2015-09-18 14:50:36 -03:00
Thiago de Arruda
47cbbc0b8c terminal: Run screen refresh timer in a deferred queue
Close #3332
2015-09-18 14:35:26 -03:00
Thiago de Arruda
1f90cbb4ae ugrid: Increase cell size to allow unicode composition
Close #3323
2015-09-18 14:35:26 -03:00