ZyX
e31aab8b61
functests: Refactor legacy/029_join test
2017-04-08 22:00:50 +03:00
ZyX
47b451c52b
functests: Refactor legacy/012_directory_spec
2017-04-08 21:58:13 +03:00
ZyX
b0731290e8
functests: Move test from legacy/009 to autocmd/autocmd
2017-04-08 21:50:14 +03:00
ZyX
1ef98b34b3
functests: Refactor 009_bufleave_autocommand_spec
...
It was not testing anything actually: the `e yy` command simply failed because
of unsaved changes, BufLeave never run thus.
2017-04-08 21:46:30 +03:00
ZyX
a40a969e9a
api: Rename _vim_id functions to nvim__id
2017-04-08 20:33:48 +03:00
ZyX
dc9722326e
unittests: Do not alter p_enc in decode unit test
2017-04-08 19:20:41 +03:00
ZyX
a83511d1a1
unittests: Move checking cores to check_child_err
2017-04-08 04:48:58 +03:00
ZyX
043d8ff9f2
Merge branch 'master' into luaviml'/lua
2017-04-08 01:54:58 +03:00
Justin M. Keyes
13352c00f1
win: os_get_hostname() #5416 ( #6413 )
2017-04-07 19:46:33 +02:00
ZyX
654dd15bb8
unittests: Fix testlint failure
2017-04-07 00:46:52 +03:00
Justin M. Keyes
30e1cda8ac
completion: fix segfault with ignorecase+infercase ( #6452 )
...
Helped-by: Matthew Malcomson <hardenedapple@gmail.com >
Closes #6451
2017-04-06 21:35:03 +02:00
ZyX
271df03fa4
unittests: Force GC, fix GC failures in typval_spec
2017-04-06 07:29:15 +03:00
Justin M. Keyes
8863af28b8
test: retry() works with asserts; error() not required.
2017-04-06 01:06:40 +02:00
Björn Linse
3b558e5d7b
tests: short form screen:except(func)
expects condition only. #6440
...
- Use this to properly test cursor shape events.
- tests: update screen_basic_spec to use `screen:expect` short form.
Clearer than using `screen:wait` directy.
2017-04-06 01:06:39 +02:00
Justin M. Keyes
e348e256f3
'guicursor': Disable by default for unknown terminals.
...
User can still set guicursor explicitly in init.vim.
Closes #5990
Closes #6403
2017-04-04 14:19:26 +02:00
Justin M. Keyes
3ccd59ee82
'guicursor': enabled=false if 'guicursor' is empty
...
Closes #6429
Closes #6430
2017-04-04 14:19:26 +02:00
Yichao Zhou
bc6d868d00
'listchars': Whitespace
highlight group #6367
2017-04-03 14:10:40 +02:00
ZyX
dc75766081
tests: Fix testlint errors
2017-04-03 03:07:01 +03:00
ZyX
9912043103
functests: Test some :write errors
2017-04-03 03:04:10 +03:00
ZyX
97a7f4745d
eval: Add s flag, use p_fs by default, error out on unknown flag
2017-04-03 02:11:27 +03:00
ZyX
b10880dadc
eval: Make writefile() able to disable fsync()
2017-04-02 22:11:35 +03:00
Nikolai Aleksandrovich Pavlov
ddfa0359c6
unittests: Make it easier to determine on which _spec line it crashed ( #6424 )
...
Benchmarks:
Before change: 17.78s user 3.48s system 94% cpu 22.525 total
After change: 25.38s user 4.46s system 101% cpu 29.317 total
2017-04-02 13:25:47 +02:00
Justin M. Keyes
3a69dbfca6
api/cursor_style_set: mode descriptions
2017-04-01 23:29:10 +02:00
Justin M. Keyes
c2826a7830
'guicursor': Empty means "block cursor in all modes".
...
Also: update default 'guicursor' to match the documentation.
2017-04-01 23:14:05 +02:00
Matthieu Coudron
dd4a5fcbb6
tui: 'guicursor' shape #6044
...
Closes #2583
2017-04-01 23:14:05 +02:00
Justin M. Keyes
518f28f537
Merge #6422 from ZyX-I/fix-6420
...
eval,fileio: Omit additional fsync() call
2017-04-01 22:38:20 +02:00
Matthew Malcomson
337b6179df
'pastetoggle': support value >1 char ( #6421 )
...
If we `set pastetoggle=abcde`, and manually type it, then `vgetorpeek()`
sees part of the option before it has all been inserted into the
typebuffer.
To signify this it sets `keylen = KEYLEN_PART_KEY`, but the condition
about whether to return the current key from `vgetorpeek()` only checks
for `keylen = KEYLEN_PART_MAP`.
Add a check for `KEYLEN_PART_KEY` to account for the `'pastetoggle'`
option.
2017-04-01 21:50:29 +02:00
ZyX
cc4523013f
eval,fileio: Omit additional fsync() call
...
Fixes #6420
2017-04-01 21:15:13 +03:00
ZyX
ac22238b6a
unittests: Replace two environment variables with one TRACE_LEVEL
2017-04-01 20:57:23 +03:00
ZyX
2d158dde02
unittests: Fix linter error
2017-04-01 13:17:25 +03:00
ZyX
708a55ee15
unittests: Disable non-C-calls
...
Some benchmarks:
TRACE_EVERYTHING: 79.45s user 12.68s system 124% cpu 1:13.94 total
(default): 30.26s user 5.30s system 89% cpu 39.663 total
2017-04-01 13:16:25 +03:00
ZyX
9dd0d4f8b9
unittests: Add trace description right to the error message
2017-04-01 12:52:28 +03:00
ZyX
046d6a8dfe
unittests: Collect traces
...
Some benchmarks:
MAIN_CDEFS + NO_TRACE: 3.81s user 1.65s system 33% cpu 16.140 total
MAIN_CDEFS: 73.61s user 10.98s system 154% cpu 54.690 total
NO_TRACE: 18.49s user 4.30s system 73% cpu 30.804 total
(default): 77.11s user 14.74s system 126% cpu 1:12.79 total
2017-04-01 12:25:10 +03:00
ZyX
8f7a48f46a
unittests: Split itp implementation into multiple functions
2017-04-01 11:19:41 +03:00
ZyX
933d60bc23
unittests: Do not hang when error message is too long
2017-04-01 11:07:08 +03:00
Nikolai Aleksandrovich Pavlov
a1c928e70c
ci: Do not hide ci directory ( #6410 )
2017-03-31 14:32:58 +02:00
Matthew Malcomson
3a9dd13f9e
fold.c: more edge-cases when updating ( #6207 )
...
When foldUpdateIEMSRecurse() re-uses an existing fold, it misses the
case where the existing fold spans from before startlnum to after
firstlnum, the new fold does not span this range, and there is no
"forced start" of a fold. We add a case for this in.
Ensure that if there was no forced break in folds, we merge folds that
now touch each other.
Include testing for a tricky foldmethod=expr case that has never been a
bug. This case works at the moment because of some effects that are not
obvious when reading the code.
A test for this could be useful to ensure a regression doesn't happen.
vim-patch:8.0.0408
2017-03-31 01:21:26 +02:00
Jakob Schnitzer
eb0e94f71b
api: {get,set}_option should {get,set} global value of local options ( #6405 )
...
- nvim_get_option should return the global default of a local option.
- nvim_set_option should set the global default of a local option.
2017-03-30 22:03:52 +02:00
Matthew Malcomson
66b336d89b
test: set 'nomore' by default ( #6360 )
...
Escaping from a '-- More --' prompt in tests is awkward as it doesn't
take keys from the typebuffer, requiring a call to `feed()` in lua at
the correct time. Moreover, it's rarer that a test will want the
'-- More --' prompt to be activated than not.
2017-03-30 19:00:34 +02:00
Justin M. Keyes
1ea9ebf112
test: Use workspace-local temp directory.
...
Closes #6291
2017-03-30 02:55:00 +02:00
ZyX
46efe14473
functests: Try sleeping a bit more
2017-03-29 10:08:46 +03:00
ZyX
114eaa15f0
eval/typval,api/buffer: Fix review comments
2017-03-29 10:08:46 +03:00
ZyX
58e34e8d99
eval/typval: Allow NULL dict as tv_dict_get_callback() argument
...
Also removes NULL key input: tv_dict_find() does not allow this.
2017-03-29 10:08:46 +03:00
ZyX
8daf756fb6
unittests: Fix linter errors
2017-03-29 10:08:46 +03:00
ZyX
7826ee1c03
unittests: Add tv_get_string* tests
2017-03-29 10:08:46 +03:00
ZyX
e08b27ba4a
unittests: Add tv_get number tests
2017-03-29 10:08:46 +03:00
ZyX
4536c064e4
unittests: Move tv_dict_add* tests to a proper describe() block
2017-03-29 10:08:46 +03:00
ZyX
49195063fd
unittests: Add tv_check… tests
2017-03-29 10:08:46 +03:00
ZyX
389274bef7
unittests: Add tv_equal() tests
2017-03-29 10:08:46 +03:00
ZyX
630ff33dc1
unittests: Test locks section
2017-03-29 10:08:46 +03:00