Justin M. Keyes
e7b1b5d6ed
health: Windows: Handle backslash path separators. ( #5914 )
...
* health: Handle backslash path separators.
* health: brevity, consistency
* health: Do not set bufhidden=wipe.
In the context of CheckHealth, bufhidden=wipe loses data for no reason.
2017-01-08 21:26:00 +01:00
Justin M. Keyes
2a366b674a
Merge #5909 from justinmk/win32-xdg
...
Windows: fix XDG fallback paths
2017-01-08 03:57:54 +01:00
Rui Abreu Ferreira
ae1ba2b2fb
test: Windows: Re-enable shada functional tests
...
One of the tests remains disabled until we figure out the expected
behaviour of mkdir() on Windows when `prot` is passed.
2017-01-08 03:23:15 +01:00
Rui Abreu Ferreira
32156f06f7
XDG: Windows: resolve $LOCALAPPDATA, $TEMP ( #5278 )
...
After #4964 environment variables in the XDG "fallback" table are no
longer expanded.
Fallback to correctly expanded $LOCALAPPDATA, $TEMP. If that fails
(unlikely), fallback to hard-coded paths (e.g. ~/AppData/Local).
Closes #5255
2017-01-08 03:18:00 +01:00
Marco Hinz
ca7a5c0ce7
ruby: old versions don't know gem list -e
2017-01-08 00:44:48 +01:00
Justin M. Keyes
d2f16d534f
Merge #5079 from ZyX-I/shada-save-current-pos
...
shada: Save current cursor position before saving jumps
2017-01-07 23:15:50 +01:00
Justin M. Keyes
50af8e0255
Merge #5903 from ZyX-I/fix-5901
...
Reset copyID also when dictionary is referenced
2017-01-07 23:13:57 +01:00
ZyX
3967618fa5
unittest: Fix linter errors
2017-01-07 19:12:18 +03:00
ZyX
dea4bb33dc
unittest,memory: Fix tests
2017-01-07 19:07:32 +03:00
Marco Hinz
40c76741c1
health: refactor s:check_ruby()
...
I gone through every single line, renamed the variables to be more consistent
and reordered many lines. Information is now printed as soon as it's available
and errors lead to early returns.
I altered the suggestions for each condition to be more precise and checked that
they fail properly.
This also prevents invalid arguments getting passed to s:version_cmp().
2017-01-07 16:56:38 +01:00
ZyX
6f267b3968
memory: Document new additions to memory.h
2017-01-07 17:58:29 +03:00
ZyX
35416e89bc
memory: Restore entered_free_all_mem functionality
2017-01-07 17:52:53 +03:00
ZyX
9a09ffa883
eval: Fix failing test
2017-01-07 15:54:55 +03:00
ZyX
88a4820cc9
unittest: Add failing test for freeing dictionaries in a list
2017-01-07 15:54:55 +03:00
ZyX
728367a196
unittest: Add dict_items function
2017-01-07 15:54:55 +03:00
ZyX
a970c1a957
eval: Make sure that copyID is reset when needed
...
Works by making value pushed on stack represent the exhausted list.
Fixes #5901 , except for dictionaries which need similar adjustment.
2017-01-07 15:15:14 +03:00
ZyX
7d0a892b37
eval/typval_encode.h: Use only a single macros with _INNER[_2] hack
2017-01-07 14:59:42 +03:00
ZyX
41cbb7891d
unittest: Add failing test of freeing lists
2017-01-07 14:48:21 +03:00
ZyX
8fd3d31329
unittest: Allow mocking allocator calls
2017-01-07 14:48:21 +03:00
James McCoy
b4c0c61f5c
Merge pull request #5826 from ZyX-I/fix-typval_encode
...
Refactor eval/typval_encode.h
2017-01-06 21:11:33 -05:00
ZyX
dd48d7b94b
eval: Fix typo
2017-01-07 00:17:31 +03:00
ZyX
527636f158
functests: Add tests for new fixes
2017-01-06 23:52:31 +03:00
ZyX
1052009b37
eval/typval_encode: Dump empty dictionary before checking for refcycle
...
Otherwise copyID will stay forever on empty dictionaries.
2017-01-06 23:32:04 +03:00
ZyX
10c6e68db6
eval: Work with reference cycles in partials (self) properly
2017-01-06 22:57:34 +03:00
ZyX
6584fb723a
eval/typval_encode: Use TYPVAL_ENCODE_CONV_EMPTY_DICT for partials
2017-01-06 22:48:50 +03:00
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
Marcus Fritzsch
afa7f42f77
man.vim: Avoid empty argument when MANWIDTH is set. ( #5882 )
2017-01-06 00:20:22 +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
Marco Hinz
1fbee630a8
provider: add Python 3.6 ( #5886 )
2017-01-05 21:29:31 +01: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
Justin M. Keyes
e21aef1e10
Merge #5874 from ZyX-I/fix-5482
...
Fix plugin which opens ShaDa files
2017-01-04 17:34:17 +01: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
Justin M. Keyes
695703ca97
provider/clipboard.vim: fallback if xsel is broken ( #5868 )
...
Old versions of `xsel` do not support some required features.
Fall back to `xclip` then.
Closes #5853
2017-01-04 15:10:31 +01: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
0ce77a744a
Merge #5749 from justinmk/test-ctrl-c
2017-01-04 13:32:39 +01:00
ZyX
24b3b938e8
plugin/shada: Handle NUL characters with intchar correctly
...
Fixes #5482
2017-01-04 15:06:33 +03:00