Shougo
00665d3c70
vim-patch:8.0.1493: completion items cannot be annotated ( #8003 )
...
Problem: Completion items cannot be annotated.
Solution: Add a "user_data" entry to the completion item. (Ben Jackson,
coses vim/vim#2608 , closes vim/vim#2508 )
https://github.com/vim/vim/commit/9b56a57cdae31f7a2c85d440392bf63d3253a158
2018-02-18 23:56:59 +01:00
Jan Edmund Lazo
7311fb7cad
win: enable more functional tests
...
- plugin/shada_spec.lua: Use \r\n as Windows EOL for tests on
BufWriteCmd, FileWriteCmd, FileAppendCmd. Alternative is 'set
fileformat=unix'.
2018-01-06 17:47:00 +01:00
Justin M. Keyes
b67f58b284
Merge #7454 'ui: ext_wildmenu'
...
closes #6168
ref #5686
2017-10-31 10:45:06 +01:00
ZyX
ae457ff64a
functests: Check that minimal distance between commands works
2017-06-21 10:58:47 +03:00
ZyX
607dc3e0f9
functests: Add tests
2017-06-21 10:58:47 +03:00
ZyX
e57d4eef88
functests: Move function_spec to eval
2017-06-20 18:17:47 +03:00
Justin M. Keyes
c8e1af93de
api: nvim_ui_attach(): Flatten ext_* options.
2017-04-26 03:41:24 +02:00
Justin M. Keyes
00843902d3
api/ui: externalize tabline
...
- Work with a bool[] array parallel to the UIWidget enum.
- Rename some functions.
- Documentation.
2017-04-26 03:41:24 +02:00
ZyX
65fb622000
functests: Replace execute with either command or feed_command
...
Hope this will make people using feed_command less likely: this hides bugs.
Already found at least two:
1. msgpackparse() will show internal error: hash_add() in case of duplicate
keys, though it will still work correctly. Currently silenced.
2. ttimeoutlen was spelled incorrectly, resulting in option not being set when
expected. Test was still functioning somehow though. Currently fixed.
2017-04-09 03:24:08 +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
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
James McCoy
c9c3f92b49
vim-patch:7.4.2200
...
Problem: Cannot get all information about a quickfix list.
Solution: Add an optional argument to get/set loc/qf list(). (Yegappan
Lakshmanan)
https://github.com/vim/vim/commit/d823fa910cca43fec3c31c030ee908a14c272640
2017-02-27 11:39:41 -05:00
James McCoy
29d7a59711
vim-patch:7.4.1768
...
Problem: Arguments of setqflist() are not checked properly.
Solution: Add better checks, add a test. (Nikolai Pavlov, Hirohito Higashi,
closes vim/vim#661 )
https://github.com/vim/vim/commit/d106e5ba7f10f0d2a14eaefe5d78405044416cb9
2016-12-27 14:10:01 -05:00
Justin M. Keyes
44e6ee930f
build: Target luacheck HEAD.
...
https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606
> If you really want to use bleeding-edge version you should get the
> rockspec from master branch, not a fixed commit ...
> The correct way to install from a specific commit is cloning that
> commit and running "luarocks make" from project directory. The reason
> is that running "install" or "build" on an scm rockspec fetches
> sources from master but uses build description from the rockspec
> itself, which may be outdated.
2016-11-17 00:55:39 +01:00
Tommy Allen
c377c8be61
vim-patch:8.0.0041
...
Problem: When using Insert mode completion but not actually inserting
anything an undo item is still created. (Tommy Allen)
Solution: Do not call stop_arrow() when not inserting anything.
2016-10-22 15:15:21 -04:00
Björn Linse
98a08c3e5a
api: add tests for calling the api from vimscript
2016-08-31 21:57:06 +02:00
Björn Linse
0ade1bb706
Merge pull request #5225 from equalsraf/windows-functionaltests
...
Enable functional tests in Appveyor
2016-08-31 21:39:42 +02:00
Björn Linse
c41bacc67c
api/ui: add tests for popupmenu_external events
...
update screen.lua to use new style nvim_ui_attach
2016-08-29 10:17:31 +02:00
Rui Abreu Ferreira
39c628d031
Mark some functional tests as pending in Windows
2016-08-26 08:21:41 +01:00
Björn Linse
4de10d43aa
tests: don't ignore highlights in completion_spec
2016-08-14 21:53:02 +02:00
Justin M. Keyes
5573e1a350
Merge #4991 'vim-patch:7.4.1140'
2016-07-09 16:55:41 -04:00
Patrick
3e2daf7125
vim-patch:7.4.1140
...
Problem: Recognizing <sid> does not work when the language is Turkish.
(Christian Brabandt)
Solution: Use MB_STNICMP() instead of STNICMP().
https://github.com/vim/vim/commit/e266d6d664d6d743c79797af400b2c01ec746216
Note: Added new test
2016-07-08 16:50:22 +10:00
Björn Linse
16424caeda
eval: add api_info()
...
Previously, the api metadata was only accessible frow within nvim as
msgpackparse(systemlist('nvim --api-info'))[0]
2016-06-17 18:47:45 +02:00
ZyX
ff470bb853
functests: Check logs in lua code
...
It is otherwise impossible to determine which test failed sanitizer/valgrind
check. test/functional/helpers.lua module return was changed so that tests which
do not provide after_each function to get new check will automatically fail.
2016-06-10 21:50:49 +03:00
KillTheMule
cdc32e72f9
Testlinting.
...
Missed in
https://github.com/neovim/neovim/pull/4644/commits/fd3088b425b8c1f4f41eb715201e429ddd37af32
2016-05-10 19:29:11 +02:00
Justin M. Keyes
4ac5a0a924
Merge pull request #4644 from KillTheMule/vim-7.4.882
...
vim-patch:7.4.882
2016-05-04 21:53:10 -04:00
KillTheMule
11f41a3c8c
Add test for vim-patch 7.4.672
2016-05-02 21:10:53 +02:00
KillTheMule
fd3088b425
Even though the patch is not needed for neovim, add a test for the bugfix
2016-04-29 19:47:20 +02:00
Björn Linse
3c4544c532
tests/ui: screen tests for completion popupmenu
2016-04-24 15:17:39 +02:00
KillTheMule
e6e843ebc0
Make completion_spec.lua more robust
...
Having a tags file in the calling directory of make test would make this test
fail, so disable tag file completion for it. Disable all other options except the
current buffer, to, applying the principle of least surprise.
2016-04-16 22:40:43 +02:00
Shougo Matsushita
d227c843bf
complete: noinsert/noselect should not set 'modified'. #4509
2016-04-09 13:36:37 -04:00
Björn Linse
5aa0159f01
edit.c: K_EVENT should not hide the popupmenu
...
Nor should K_FOCUSGAINED and K_FOCUSLOST.
2016-03-17 13:26:51 +01:00
Anmol Sethi
0b468fd0cf
complete: disable folding when completing
...
Fixes vim/vim#643
2016-03-09 10:04:15 -05:00
Marco Hinz
67eeb8a798
Tests: check error messages from set{qf,loc}list()
2016-03-02 15:09:39 +01:00
Marco Hinz
6bfd88dec1
Tests: add function_spec.lua
2016-03-01 17:07:18 +01:00
Marco Hinz
b6170db1a1
Avoid internal errors with setloclist()
...
All syntastic users experienced this problem:
E685: Internal error: get_tv_string_buf()
It's reproducable with:
:call setloclist(0, [''])
So, not given optional arguments to setloclist() lead to some fields not
inizilied and the code took the wrong branches.
2016-02-26 18:52:17 +01:00
Marco Hinz
97324c96a4
Tests: add errorlist_spec.lua
2016-02-25 12:50:17 +01:00
Justin M. Keyes
7567afbbe5
test: completion_spec: minor edits
2016-02-13 15:21:28 -05:00
solawing
fd14f64e26
tests: add always complete test
2016-01-29 22:03:30 +08:00
Marco Hinz
4a69e55f39
test/functional: clean up according to luacheck (part 1)
2015-11-23 13:57:21 +01:00
Shougo Matsushita
8b200f904f
completion: Initialize v:completed_item #2839
...
v:completed_item should always be a dict (not empty string), even before
the first completion.
2015-06-20 11:53:13 -04:00
Shougo Matsushita
be66c0b357
Add complete() noinsert/noselect support #2792
2015-06-11 09:03:00 -04:00
Shougo Matsushita
e6c62c80ef
Add noinsert and noselect features in completeopt #2564
...
Backported from vim_dev:
https://groups.google.com/forum/#!searchin/vim_dev/completeopt/vim_dev/tVsk0pdOGvs/fCzBbPkA4w0J
Use case:
https://github.com/Shougo/neocomplcache.vim/issues/426
Reviewed-by: Felipe Morales <hel.sheep@gmail.com >
Reviewed-by: Scott Prager <splinterofchaos@gmail.com >
Reviewed-by: Michael Reed <m.reed@mykolab.com >
2015-06-04 21:20:09 -04:00
Shougo Matsushita
d9f97e3026
completion: Add v:completed_item feature #2563
...
Reviewed-by: Michael Reed <m.reed@mykolab.com >
Reviewed-by: Luke Andrew <luke.github@la.id.au >
Reviewed-by: Justin M. Keyes <justinkz@gmail.com >
Reviewed-by: Florian Walch <florian@fwalch.com >
2015-05-24 17:05:12 -04:00