ZyX
7f11ec00fd
eval/typval_encode.h: Remove documentation that is located in *.c.h
2017-01-06 22:38:46 +03:00
Michael Schupikov
1fee9a7151
eval.c: filter_map(): avoid maybe-uninitialized warning ( #5897 )
...
maybe-uninitialized warning observed with -Ofast.
2017-01-06 18:23:52 +01:00
James McCoy
ffdf1904d6
Merge pull request #5893 from lonerover/vim-7.4.2127
...
vim-patch:7.4.2127
2017-01-06 09:54:40 -05:00
James McCoy
f82f27ccec
Merge pull request #5892 from lonerover/vim-7.4.2103
...
vim-patch: 7.4.2103
2017-01-06 09:47:30 -05:00
lonerover
6c69bc9788
fix lint error
2017-01-06 09:25:15 +08:00
Michael Schupikov
23b39ebb24
time.c: os_microdelay(): Let input cancel the delay. #5830
...
Closes #5397
2017-01-06 00:57:31 +01:00
ZyX
a1cce83d3c
clint: Add more exceptions to “space after a cast” rule
...
Python does not allow branching here, complaining that look-behind is not
fixed-width.
2017-01-06 01:52:36 +03:00
ZyX
10d9c6d813
shada: Mark ALWAYS_INLINE function as inline
2017-01-06 01:47:07 +03:00
nfnty
7a344c795f
path.c: vim_FullName()
: Fix heap overflow #5737
...
- Clarify documentation.
- Return `FAIL` and truncate if `fname` is too long.
- Add tests.
2017-01-05 15:17:34 +01:00
rover
9da9e1c417
vim-patch:7.4.2127
...
Problem: The short form of ":noswapfile" is ":noswap" instead of ":now".
(Kent Sibilev)
Solution: Only require three characters. Add a test for the short forms.
3bcfca3ab4
2017-01-05 21:12:02 +08:00
lonerover
12b50b116f
vim-patch:7.4.2110 ( #5880 )
...
Problem: When there is an CmdUndefined autocmd then the error for a missing
command is E464 instead of E492. (Manuel Ortega)
Solution: Don't let the pointer be NULL.
eac784eced
2017-01-05 13:55:32 +01:00
lonerover
bef645e5e4
vim-patch:7.4.2103
...
Problem: Can't have "augroup END" right after ":au!".
Solution: Check for the bar character before the command argument.
e99e84497b
2017-01-05 13:33:56 +08:00
ZyX
c93ce07628
*: Remove // fname()
comments near typval_encode includes
2017-01-04 19:04:15 +03:00
ZyX
358097ac5f
eval/encode: Always check the return value of encode_vim_to_\*
2017-01-04 19:02:39 +03:00
ZyX
ac50971f87
shada: Move setpcmark()/cleanup_jumplist() out of the cycle
2017-01-04 16:55:28 +03:00
ZyX
ec975a74ad
shada: Fix offset saving
2017-01-04 16:42:43 +03:00
ZyX
40cedfd0f5
shada: Silence linter
2017-01-04 16:37:31 +03:00
ZyX
81ef9f55ae
shada: Save current cursor position before saving jumps
2017-01-04 16:34:06 +03:00
Ole Reifschneider
1dc67f4dc8
version.c: update ( #5876 )
2017-01-04 14:31:23 +01:00
Justin M. Keyes
6f9be2464c
Merge #5872 justinmk/test_autochdir
2017-01-04 08:24:36 +01:00
Justin M. Keyes
e43f7425ee
refactor: Remove VimL function test()
...
vim-patch:7.4.1838
2017-01-04 07:23:13 +01:00
Justin M. Keyes
097c8dccca
refactor: Remove VimL function test_autochdir()
...
- Eliminate global test_autochdir.
- Eliminate VimL function test_autochdir()
- Use a lua test instead. Fails correctly after reverting
0c43479979
/ vim-patch:7.4.2015.
2017-01-04 07:23:13 +01:00
lonerover
c56411ed87
vim-patch:7.4.2043 ( #5871 )
...
Problem: setbuvfar() causes a screen redraw.
Solution: Only use aucmd_prepbuf() for options.
93431df9eb
2017-01-04 06:16:21 +01:00
lonerover
1984e784fb
fix lint error
2017-01-04 08:53:38 +08:00
ZyX
136b382e64
tests: Add tests for partials dumping
...
Also fixed dumping of partials by encode_vim_to_object and added code which is
able to work with partials and dictionaries to test/unit/eval/helpers.lua
(mostly copied from #5119 , except for partials handling).
2017-01-03 22:51:29 +03:00
lonerover
17dc20369e
fix lint error
2017-01-03 10:42:44 -05:00
lonerover
1bea73a21e
vim-patch:7.4.1847
...
Problem: Getting an item from a NULL dict crashes. Setting a register to a
NULL list crashes. (Nikolai Pavlov, issue vim/vim#768 ) Comparing a NULL
dict with a NULL dict fails.
Solution: Properly check for NULL.
13ddc5c359
2017-01-03 10:38:56 -05:00
ZyX
efc624c2fe
eval: Fix errorneous early exit when converting lists and dictionaries
2017-01-03 17:28:57 +03:00
ZyX
f21725946c
eval/encode: Fail when stringifying NULL functions
2017-01-03 16:13:21 +03:00
lonerover
a5f36e24bb
vim-patch:7.4.2036
...
Problem: Looking up a buffer by number is slow if there are many.
Solution: Use a hashtab.
480778b805
2017-01-03 15:26:32 +08:00
ZyX
06cca5dc59
eval/typval_encode: Handle NULL partials properly
2017-01-03 07:44:54 +03:00
ZyX
9c84f3ba3e
eval/typval_encode: Provide proper values as dict argument
2017-01-03 07:41:05 +03:00
ZyX
a5bdd64a5e
eval: Fix unused variable error in release builds
2017-01-03 07:14:54 +03:00
ZyX
492c439c54
clint: Check for misplaced brace at function start
2017-01-03 07:11:43 +03:00
ZyX
287c69dd32
clint: Enable check for {
positioned at the start of the line correctly
...
For some reason that was incorrectly hidden by “file is *not* \*.c or \*.h file”
check.
2017-01-03 07:11:43 +03:00
ZyX
a52238707c
eval/encode: Fix 4 new linter failures
2017-01-03 06:39:23 +03:00
ZyX
ff8944105d
eval/typval_encode: Refactor arguments to argument macroses
...
Fixed local test failures somewhere in process.
2017-01-03 06:39:23 +03:00
ZyX
5ba24318e2
eval: Do not free partial contents if partial is still referenced
...
Should fix some tests, including core/job_partial tests.
2017-01-03 06:39:23 +03:00
ZyX
67b53361ba
eval/typval_encode: Rename some \*tv variables
...
Renames `tv` function argument to `top_tv` and `cur_tv` variable to `tv`, so
`tv` will mean something more or less the same in both
_TYPVAL_ENCODE_CONVERT_ONE_VALUE and _TYPVAL_ENCODE_ENCODE functions.
2017-01-03 06:39:23 +03:00
ZyX
e2d81cc479
eval: Do not free partial lists as lists
2017-01-03 06:39:23 +03:00
ZyX
901e7805ee
eval: Fix case when cur_mpsv is NULL
...
Should only happen when clearing VAR_FUNC typval which is not placed inside
a container.
2017-01-03 06:39:23 +03:00
ZyX
759e736b0a
eval/typval_encode: Fix infinite loop
...
Occurs when trying to dump a partial with attached self dictionary which
references that partial. “Infinite” loop should normally result in Neovim killed
by OOM killer.
Also moved the place when partials are unreferenced by clear_tv: from
…FUNC_START to …FUNC_END.
2017-01-03 06:39:23 +03:00
ZyX
affa3c2baa
api/helpers: Fix unused variable error in release build
2017-01-03 06:39:23 +03:00
ZyX
dd27fcfda5
eval/typval_encode: Fix linter errors
2017-01-03 06:39:23 +03:00
ZyX
38ab553eb2
clint: Allow including .c.h files multiple times
...
Except when they are system just in case. There should be no .c.h system files
though, but if there will be it is unlikely that they inherit the same
convention.
2017-01-03 06:39:23 +03:00
ZyX
27343bc5b2
eval/typval_encode: Fix crashes
2017-01-03 06:39:23 +03:00
ZyX
b3163d06b3
eval/typval_encode: Refactor big-big macros into .c.h file
...
This makes gdb backtraces much more meaningful: specifically I now know at which
line it crashes in place of seeing that it crashes at
TYPVAL_ENCODE_DEFINE_CONV_FUNCTIONS macros invocation.
2017-01-03 06:39:23 +03:00
ZyX
c5c75513b8
eval/typval_encode: Make partial conversions not recursive
...
Is known to crash in the current state.
Ref #5825 .
2017-01-03 06:39:23 +03:00
James McCoy
bfb5180627
vim-patch:7.4.1889
...
Problem: When umask is set to 0177 Vim can't create temp files. (Lcd)
Solution: Also correct umask when using mkdtemp().
35d88f4e2f
2017-01-02 20:12:47 -05:00
James McCoy
efe1476d42
Merge pull request #5743 from jamessan/na-vim-patches
...
version.c: Mark NA patches
2017-01-02 13:57:26 -05:00