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
Nicolas Cornu
600bb285f6
Replace TRUE/FALSE with true/false in move.c
2015-09-08 02:34:50 +02:00
Nicolas Cornu
16e9c853df
hasFolding return bool now
2015-09-08 02:34:50 +02:00
Nicolas Cornu
63a39015f5
hasFoldingWin now return bool
2015-09-08 02:34:43 +02:00
Rui Abreu Ferreira
5230aa8de9
MSVC: Fix declaration generation. #3301
2015-09-07 20:06:20 -04:00
Nicolas Cornu
41778e2e10
win_T.w_cline_folded from int to bool
2015-09-07 15:03:47 +02:00
oni-link
6ea21f5668
vim-patch:7.4.609
...
Problem: For complicated list and dict use the garbage collector can run
out of stack space.
Solution: Use a stack of dicts and lists to be marked, thus making it
iterative instead of recursive. (Ben Fritz)
2459a5ecaa
2015-09-07 13:03:15 +02:00
Thiago de Arruda
eb001a4abd
tui: Refactor for running in another thread
2015-09-06 09:18:53 -03:00
Thiago de Arruda
9f9710aab4
ui: Implement module for thread-safe communication with U
...
The ui_bridge.c module implements a surrogate UI that forwards calls to another
thread.
2015-09-06 09:18:53 -03:00
Thiago de Arruda
c20b802511
loop: Improvements for thread-safety
...
- Implement `loop_schedule` method for queueing events from other threads
- Make `loop_poll_events` `recursive` static variable a field of the Loop
structure
2015-09-06 09:18:53 -03:00
Thiago de Arruda
203a4d5650
queue: Allow direct appending to parent queues
2015-09-06 09:18:52 -03:00
Thiago de Arruda
2a0ff9f5cf
log: Make logging thread-safe
2015-09-06 09:18:52 -03:00
Thiago de Arruda
9ec240e03f
build: Disable gcov on TSAN builds
...
It seems GCOV does not play well with TSAN as it reports false data races
2015-09-06 09:18:52 -03:00
Thiago de Arruda
f5c5cdb306
tui: Move screen state tracking to new "ugrid" module
...
The ugrid module implements a unicode "drawing" grid and is used to store TUI
screen state. Later this module will be reused in other layers.
2015-09-06 09:18:52 -03:00
Thiago de Arruda
cb9ae4e373
tui: move term_input.inl into the input.c module
2015-09-06 09:18:52 -03:00
oni-link
615e298a94
vim-patch:7.4.602
...
Problem: ":set" does not accept hex numbers as documented.
Solution: Use vim_str2nr(). (ZyX)
18400e6430
2015-09-06 07:30:52 +02:00
Rui Abreu Ferreira
e2cbac7634
MSVC: Include limits.h for INT_MAX. #3290
2015-09-05 12:02:59 -04:00
Felipe Morales
77e416b711
do_path_expand: Avoid non-readable directories. #3273
...
Closes https://github.com/neovim/neovim/issues/3164
Closes https://github.com/neovim/neovim/issues/3194
Closes https://github.com/neovim/neovim/issues/3221
Helped-by: @splinterofchaos
Helped-by: @oni-link
Helped-by: @justinmk
2015-09-04 19:56:37 -04:00
Felipe Morales
11b8c76e41
fixup: appease clint
2015-09-04 11:07:36 +02:00
Steven Oliver
f7c5dc4db2
Remove instances of TRUE/FALSE macro
...
memory.c
os_unix.c
path.c
2015-09-04 11:07:33 +02:00
Rui Abreu Ferreira
8bf141dea7
Windows: Move file_info_old declaration out of UNIX block #3260
2015-08-31 03:08:33 -04:00
Felipe Morales
acdac914d5
clipboard: avoid clipboard during :global. #2809
...
This is equivalent to patches 7.4.396, 7.4.445 and 7.4.598.
vim-patch:7.4.396
Problem: When 'clipboard' is "unnamed", :g/pat/d is very slow.
(Praful)
Solution: Only set the clipboard after the last delete. (Christian
Brabandt)
1f285eb49a
vim-patch:7.4.445
Problem: Clipboard may be cleared on startup.
Solution: Set clip_did_set_selection to -1 during startup. (Christian
Brabandt)
1a19d37d90
vim-patch:7.4.598
Problem: ":tabdo windo echo 'hi'" causes "* register not to be
changed.
(Salman Halim)
Solution: Change how clip_did_set_selection is used and add
clipboard_needs_update and global_change_count. (Christian
Brabandt)
af6a579263
Co-Author: @bfredl
2015-08-30 23:40:12 -04:00
Mathieu Xhonneux
79b6ab21d8
termopen(): remove name
feature. #3181
...
Problem: Commands like `:e term://top` display `term://.//PID:(null)`
instead of `term://.//PID:top`.
Solution: Remove the optional `name` argument (it allowed
ambiguous/potentially destructive cases, so it was problematic anyway).
Closes #3113
Closes #2924
2015-08-30 17:15:50 -04:00
Seth Jackson
8229651087
Windows: Define USE_CRNL on Windows. #3249
2015-08-28 03:02:40 -04:00
Rui Abreu Ferreira
3901f59876
Windows: restore 'shell', 'shellcmdflags' defaults. #3256
...
- On Windows the default shell is cmd.exe and the shell flag is /c
- vim-patch:0
2015-08-28 02:56:06 -04:00
Justin M. Keyes
f15b864239
MSVC: use MSVC instead of GCC-like compiler flags.
...
- We can build with /W4, but it gives thousands of warnings.
- _CRT_NONSTDC_NO_DEPRECATE disables warnings about POSIX functions.
https://msdn.microsoft.com/en-us/library/ms235384.aspx
- _CRT_SECURE_NO_WARNINGS
https://msdn.microsoft.com/en-us/library/8ef0s5kh.aspx
2015-08-27 22:00:34 -04:00
Seth Jackson
b9d17c6a8a
Windows: avoid "uv_" naming conflicts. #3225
2015-08-27 21:47:49 -04:00
Chiu-Hsiang Hsu
56fe0c956f
version.c: mark patches NA #3252
...
* .777 (README)
694cac7a35
* .778 (Coverity warnings) presumably fixed by 9de544c785
ae2fe73abc
* .780 (Compiler complains)
1db43b1145
* .783 (copy_chars, copy_spaces) see c729286604
2536d4f396
* .788 (fix build, #ifdef) we don't have integrated crypto, see #699
5cbb8dbc32
* .794 (Make_mvc.mak) we have a completely different build system
d4a95c3bc5
* .796 (Compiler warnings)
33c3a694fc
Reviewed-by: Michael Reed <Pyrohh@users.noreply.github.com >
2015-08-27 17:07:07 -04:00
Michael Reed
2d50a95601
os/os_defs.h cleanup: Remaining signal stuff
...
RETSIGTYPE, SIGRETURN, and SIGDEFARG are always defined the same, so
inline them for simplicity; SIGDUMMYARG, however, is unused, so remove
it.
Even if these things don't work on windows, the signal handler in
if_cscope.c is already wrapped with '#idef UNIX', as is its only call
site.
Reviewed-by: Justin M. Keyes <justinkz@gmail.com >
2015-08-27 16:56:05 -04:00
Michael Reed
3b99d8d0dd
os/os_defs.h cleanup: SIGHASARG
...
It's always defined, so the #else is redundant.
2015-08-27 16:54:36 -04:00
Michael Reed
43bc42d94e
os/os_defs.h cleanup: SIGHAS3ARGS
...
SIGHAS3ARGS appears in Vim's source code like this:
/* List 3 arg systems here. I guess __sgi, please test and correct me. jw. */
if defined(__sgi) && defined(HAVE_SIGCONTEXT)
define SIGHAS3ARGS
endif
Given we don't support SGI, remove it.
2015-08-27 16:54:36 -04:00
Michael Reed
02740689a7
os/os-defs.h cleanup: Don't include <time.h>
...
Any files which need definitions from <time.h> should include it,
not "os/os_defs.h".
2015-08-27 16:54:36 -04:00