ZyX
cca029bc8d
functests: Refactor legacy/003_cindent_spec and legacy/increment_spec
2017-04-08 22:17:39 +03:00
ZyX
7766b24f3c
functests: Refactor legacy/018_unset_smart_indenting_spec
2017-04-08 22:02:44 +03:00
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
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
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
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
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
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
Jakob Schnitzer
4049492b6d
also test set_option
2017-04-01 12:26:58 +02:00
ZyX
9dd0d4f8b9
unittests: Add trace description right to the error message
2017-04-01 12:52:28 +03:00
Jakob Schnitzer
8a55f9b1c8
update for changes in master; fix 'window'; tests
2017-03-31 18:30:06 +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
db095f6563
options: more tests; check first set later; stricter validation
2017-03-30 23:04:54 +02:00
Jakob Schnitzer
44f039a1c8
options: fix setglobal for buf-local number options
2017-03-30 23:04:54 +02:00
Jakob Schnitzer
628d0335b8
options: add some tests
2017-03-30 23:04:54 +02:00
Jakob Schnitzer
e47622f26b
options: setlocal should only set local value
...
For 'iminsert' and 'imsearch' the global value was always changed.
2017-03-30 23:04:54 +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
fa852e7cdc
eval: Fix extend() behaviour with NULL lists and dictionaries
...
Ref #4615
Ref vim/vim#768
2017-03-29 10:08:45 +03:00
ZyX
38dd81c136
eval/typval: Fix SEGV in test_alot.vim test
2017-03-29 10:08:45 +03:00
ZyX
cdb1aa3e47
eval: Fix len argument to xstrlcat
2017-03-29 10:08:45 +03:00
ZyX
3025431c81
eval: Make sure that v:_null_dict does not crash dictwatcher*()
...
Ref #4615
2017-03-29 10:08:44 +03:00
ZyX
1e3e302dc2
eval: Move part of dictwatcher* functions to eval/typval
2017-03-29 10:08:44 +03:00
ZyX
5239616297
functests: Fix buf_functions test on Windows
2017-03-29 10:08:44 +03:00
ZyX
b3672ae2fc
eval/typval: Add tv_list_equal() tests, compare NULL lists equal
2017-03-29 10:08:06 +03:00
ZyX
7ceebacb3f
eval/typval,tests: Fix extending list with itself, add tests
...
Adds unit test for tv_list_extend and regression test for extend() VimL
function.
2017-03-29 10:08:06 +03:00
ZyX
f80a00469f
eval/typval: Make tv_list_concat handle NULL lists correctly
...
Fixes some FIXMEs in eval/null_spec.lua.
2017-03-29 10:08:06 +03:00
ZyX
82e6cac5f9
functests: Add null_spec.lua from #4615
...
For now it is full of FIXMEs and tests for incorrect behaviour. Sorted out to
have FIXMEs in one place, commented crashing tests in other and correctly
working tests in the third one.
2017-03-29 10:08:06 +03:00
ZyX
86fc4580b8
eval: Fix max_min functions
...
Found two bugs:
1. Multiple unneeded error messages, vim/vim#1039 .
2. Unformatted error string, vim/vim#1040 .
2017-03-29 10:08:06 +03:00
ZyX
c8e63a8db8
eval: Move remaining get_tv_string* functions to eval/typval.c
2017-03-29 10:08:05 +03:00
ZyX
7ee5cc7429
eval: Move get_tv_lnum and get_tv_float to eval/typval.h
...
Additionally
- Rename former tv_get_float to tv_get_float_chk due to name conflict (former
get_tv_float is better suited for being tv_get_float).
- Add E907 error to get_tv_float() and test that it is being raised when
appropriate.
2017-03-29 10:08:05 +03:00
ZyX
54bd2e8b73
eval: Make setmatches() return -1 in case of some failures
2017-03-29 10:07:43 +03:00
ZyX
e18a578308
*: Move some dictionary functions to typval.h and use char*
...
Also fixes buffer reusage in setmatches() and complete().
2017-03-29 10:07:42 +03:00
ZyX
50a48f2a0e
functests: Add tests for some *buf* functions
2017-03-29 10:05:06 +03:00