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
Anmol Sethi
d8a97d7b79
man.vim: do not set ft=man on files with extension man ( #5831 )
...
Closes #5806
2017-01-04 13:01:03 +01:00
ZyX
d82f5d1ba2
plugin/msgpack: Support character constants like '\0'
2017-01-04 14:53:02 +03:00
ZyX
a934144e04
doc: Document that character constants are supported
2017-01-04 14:52:13 +03:00
Justin M. Keyes
6f9be2464c
Merge #5872 justinmk/test_autochdir
2017-01-04 08:24:36 +01:00
Justin M. Keyes
af828f2257
Merge #5864 from ZyX-I/fix-5857
...
unittest: Allow multiple indirect includes
2017-01-04 11:54:11 +01:00
Justin M. Keyes
a63675c384
test/helpers.rmdir(): Windows: Change to top-level dir on failure.
...
On Windows, if the nvim process has a directory open the lua process
cannot remove it. After failing once, it's safe to force `nvim` to the
top-level directory. Then try again.
2017-01-04 07:23:13 +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
Justin M. Keyes
e03b43bd07
test: skip_fragile(), TEST_SKIP_FRAGILE
...
Let build systems define TEST_SKIP_FRAGILE to skip tests that are known to be
resource-intensive (unreliable on slow systems).
References https://github.com/neovim/neovim/pull/5488#issuecomment-265622113
2017-01-04 04:24:18 +01:00
Justin M. Keyes
f4d326cf10
test: ctrl_c_spec
...
- Improve test reliability by only checking for a line with the string
we are interested in ("Interrupt").
- Try to avoid OOM by loading an existing big file instead of looping to
create one.
2017-01-04 03:18:30 +01:00
lonerover
1984e784fb
fix lint error
2017-01-04 08:53:38 +08:00
Marco Hinz
15259c4b84
clipboard: show error message only once and put in history ( #5870 )
2017-01-04 00:45:31 +01:00
Shougo
9cb31ecdb0
syntax/ruby.vim, perl.vim: Preserve 'foldmethod'. ( #5858 )
2017-01-03 23:53:59 +01:00
ZyX
3c64b814d2
unittests: Fix linter errors
2017-01-03 23:58:12 +03:00
ZyX
937b6fac8f
unittest: Fix linter errors
2017-01-03 22:54:55 +03:00
ZyX
b38e725428
unittest: Refactor preprocess.lua
...
Keeps arguments separated and not joined as a single string as long as possible.
Abstracts away additional arguments so that Gcc:preprocess should work for
compilers with different conventions should they be supported.
2017-01-03 22:54:55 +03:00
ZyX
2151ddbd73
unittest: Move nil checks to Gcc:preprocess
2017-01-03 22:54:54 +03:00
ZyX
0d7b779cab
unittest: Record previous defines in another place
...
Previous commit made preprocess.lua know how its output will be used. This moves
state to cimport, making only it know which is cleaner.
2017-01-03 22:54:54 +03:00
ZyX
410d18ef5c
unittest: Allow multiple indirect includes
...
Works by saving all preprocessor defines and reusing them on each run. This also
saves NVIM_HEADER_H defines. Saving other defines is needed for defines like
`Map(foo, bar)` which are sometimes used to declare types or functions. Saving
types or function declarations is not needed because they are recorded as luajit
state.
Fixes #5857
2017-01-03 22:54:54 +03: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
James McCoy
3b793d0453
Merge pull request #5835 from lonerover/vim-7.4.1847
...
vim-patch:7.4.1847
2017-01-03 11:36:56 -05: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
Tommy Allen
fd9cc8b0b2
automation: Generate API documentation ( #5798 )
...
runtime: Add underscore to {} helpSpecial syntax pattern
docs: Added generated api-funcs.txt
2017-01-03 13:11:19 +01: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