Daniel Hahler
8cfcf01475
tui: fix_terminfo: Handle "tmux" like "screen". #3422
...
Closes #3399
2015-10-04 14:20:27 -04:00
bambu
2788f7fcc8
menu: support :emenu invoked by cmenu map.
2015-10-03 03:02:05 -04:00
Thiago de Arruda
2182cd6081
ex_docmd: Fix terminal mode check condition for ex_normal
...
Using the `curbuf->terminal` condition alone is wrong since it does not
necessarily mean nvim is in terminal mode. It needs to be used with
`State & TERM_FOCUS` because the current buffer could have changed without
`terminal_enter` exiting.
Close #3403
2015-10-01 15:22:49 -03:00
Thiago de Arruda
0ca3f03c19
tui: Fix queueing of large chunks of input
...
Take the return value of input_enqueue into consideration, waiting for the main
thread to consume input. Close #1714 #3377 .
2015-10-01 15:22:49 -03:00
Thiago de Arruda
394c0c4402
rbuffer: Enhance rbuffer_reset to work with filled RBuffers
2015-10-01 15:22:49 -03:00
Thiago de Arruda
0e4e69e52e
os/input: Don't advance past incomplete sequences in input_enqueue
...
This allows callers to incrementally process buffers that are filled by
incomplete chunks more easily.
2015-10-01 15:22:49 -03:00
Thiago de Arruda
1143b416ab
tui: Don't use 'pastetoggle' for automatic pasting
...
Add a new special key that can be used by UIs to toggle the 'paste' option and
use it in the TUI instead of the user's 'pastetoggle' value.
Close #2843 #2092
2015-10-01 15:22:48 -03:00
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
oni-link
2fb77ba6f9
spell.c: Fix memory leak
2015-10-01 12:34:13 +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
ZyX
b6fdb7bd0f
eval/string(): Share code between msgpackdump() and string()+:echo
2015-09-30 10:12:35 +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
Felipe Morales
b927304108
defaults: revert wildmode to 'full'
2015-09-26 21:09:47 +02:00
Pavlos Vinieratos
e073074414
ex_menu: use bool
. #3389
2015-09-25 21:15:10 -04: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
6eb78dcaaa
nv_ident: sprintf => snprintf
...
Also fix some other clint errors.
2015-09-23 00:06:27 -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
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
ZyX
924058c00f
eval/msgpackparse(): Fix crash by adding return at error
2015-09-19 01:54:43 +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
Thiago de Arruda
1b1716477c
terminal: Don't enter terminal mode from :normal
...
Ref: https://github.com/junegunn/fzf.vim/issues/8#issuecomment-139209765
2015-09-18 14:35:26 -03:00
Thiago de Arruda
b7dab423ef
eval: Fix ex_delfunction
to use the uf_refcount
field properly
...
@4b98ea1e80bf changed how refcounts are handled internally to fit into job
control semantics. Change the refcount check in `ex_delfunction` to consider
this. Close #3000
2015-09-18 14:35:26 -03:00
Thiago de Arruda
0a116c828d
regexp: Fix invalid multibyte reads at end of strings
...
Close #3150
2015-09-18 14:35:26 -03:00
Thiago de Arruda
c708061a5a
os/path: Fix path_get_absolute_path for top-level paths
...
Close #2833
2015-09-18 14:35:26 -03:00
Thiago de Arruda
29b998be68
ui_bridge: Fix passing NULL pointer to memcpy
2015-09-18 14:35:26 -03:00
Jakob Schnitzer
fcd314223d
options: unify undolevels default
...
Considering Nvim's supported platforms, having a different default for
(!Unix and !Windows) doesn't seem very useful.
2015-09-17 19:38:24 +02:00
Björn Linse
8c2481806d
api: vim_err_write: don't wait for return in the middle of a message
2015-09-16 21:42:57 +02:00
Thiago de Arruda
22ea2900d0
loop: Free the parent queue last when destroying the loop
...
This avoids a heap-use-after-free ASAN error. Close #3334
2015-09-16 02:52:55 -03:00
Justin M. Keyes
5c82ea8f9f
remove HAVE_DUP #1072
...
Vim defines this for Windows, so there's no Neovim-supported system for
which this would not be defined.
2015-09-12 13:07:38 -04:00
Enrico Ghirardi
57836f2b71
term: Do not highlight bold text by default. #3333
...
It makes more sense to let the user application terminal emulator
decide how to render bold text.
2015-09-12 12:30:54 -04:00
Justin M. Keyes
b762e809e4
Merge pull request #3322 from oni-link/fix.memory.leak.2
...
path.c: Fix memory leak in expand_wildcards().
2015-09-10 20:52:25 -04:00
Rui Abreu Ferreira
2bc1d7d0db
Windows: Only link against libm, libutil on Unix. #3324
2015-09-10 00:48:43 -04:00
Justin M. Keyes
6d50f4d0c9
Merge #3297 'move.c refactor'
2015-09-10 00:32:43 -04:00
oni-link
367fc41943
path.c: Fix memory leak in expand_wildcards().
...
A file that matches with one of the patterns in 'wildignore' is ignored
when using expand_wildcards(). After removing ignored files, the array
of (file name) matches can be empty. But an empty array is never freed.
2015-09-09 19:03:45 +02:00
Justin M. Keyes
41446715b4
Merge pull request #3298 from oni-link/vim-7.4.609
...
vim-patch:7.4.609
2015-09-09 00:43:04 -04:00
Justin M. Keyes
a5b4e943be
Merge pull request #3308 from oni-link/fix.clang.report
...
Fix warning: stream.c: stream_init(): Dead store: HI.
2015-09-09 00:42:27 -04:00
Enrico Ghirardi
1d1963e90e
api: buffer_insert: fix bounds. #3315
...
buffer_insert calls buffer_set_line_slice excluding the start
line number and including the end, but it should be the opposite.
Closes https://github.com/neovim/neovim/issues/3212
Closes https://github.com/neovim/python-client/issues/103
2015-09-09 00:35:52 -04:00
oni-link
217b6bc123
Fix warning: stream.c: stream_init(): Dead store: HI.
...
Problem : Dead store @ 59.
Diagnostic : Harmless issue.
Rationale : loop is a function parameter that is not used anymore
after this line.
Resolution : Remove line.
Based on: http://neovim.io/doc/reports/clang/report-27475f.html#EndPath
2015-09-08 14:35:19 +02:00
Nicolas Cornu
23acaf8940
Scope variables in move.c
2015-09-08 13:51:36 +02:00
Björn Linse
ffff2c9c47
encoding: Update handling of encoding in tests
...
Always run tests with encoding=utf-8, regardless of user locale
Don't set &encoding after startup in tests
Helped-By: Michael Reed <m.reed@mykolab.com >
2015-09-08 10:54:31 +02:00
Björn Linse
fa5827b144
encoding: simplify handling of encoding in TUI
2015-09-08 10:53:44 +02:00
Björn Linse
6769438cd1
encoding: don't allow changing encoding after startup scripts
2015-09-08 10:53:27 +02:00
Rui Abreu Ferreira
dc9652e68d
Windows: disable libuv argument escaping for uv_spawn #3305
...
When calling uv_spawn to launch a process set the libuv process flag
UV_PROCESS_WINDOWS_VERBATIM_ARGUMENTS to disable escaping for the
arguments otherwise libuv will wrap arguments in quotes.
2015-09-08 01:23:21 -04:00