Jan Edmund Lazo
db6521a560
test: fix/speedup scrollback_spec
...
- fix: Use "set PROMPT=$" trick to satisfy screen:expect{any='%$'}
- speedup: Use cmd.exe instead of powershell.
2018-10-22 01:30:28 +02:00
Björn Linse
bcab880bb6
api/ui: verify compatibility of UI events
2018-10-21 20:36:52 +02:00
Justin M. Keyes
3059516e8a
Merge #9086 'vim-patch:8.1.0448'
2018-10-18 00:47:30 +02:00
Justin M. Keyes
aff64b3a52
Merge #9124 'vim-patch:8.0.1672'
2018-10-17 09:51:09 +02:00
Justin M. Keyes
9642903dea
test: Improve 008_autocommands_spec reliability ( #9129 )
...
Sometimes 008_autocommands_spec fails like this:
[ RUN ] autocommands that delete and unload buffers: BufUnload, VimLeave: -- Output to stderr:
CMake Error at /home/travis/build/neovim/neovim/cmake/RunTests.cmake:53 (message):
functional tests failed with error: 1
The final :quit + wait() is a race. Use command() instead, which is
synchronous. Use command('silent! ...') everywhere else too, because
it's clearer instead of feeding input and clearing the expected errors
with CTRL-L.
2018-10-17 09:24:45 +02:00
Justin M. Keyes
ee94eecbd4
vim-patch:8.1.0448: cursorline not removed when using 'cursorbind'
...
Problem: Cursorline not removed when using 'cursorbind'. (Justin Keyes)
Solution: Store the last cursor line per window. (closes vim/vim#3488 )
4a5abbd613
2018-10-16 00:15:09 +02:00
Björn Linse
c8810a51a3
tests: improve robustness of immediate successes in screen tests
2018-10-15 20:13:11 +02:00
Jan Edmund Lazo
9c2d5f1a33
functionaltest: map error does not cancel prompt
2018-10-14 09:08:56 -04:00
Justin M. Keyes
e39dade80b
test: adjust timer tests
...
Timer tests are less reliable on Travis CI macOS 10.12 (most egregious).
Also somewhat on 10.13.
2018-10-13 23:34:49 +02:00
Björn Linse
79a11ecfd3
Merge pull request #9121 from bfredl/virt_invalid
...
API: make nvim_buf_set_virtual_text handle invalid chars
2018-10-13 20:15:28 +02:00
Reto Schnyder
bddcbbb571
signs: Add "numhl" argument #9113
...
close #9113
ref #9040
2018-10-13 19:39:56 +02:00
Björn Linse
3d84cf6ff4
api: make nvim_buf_set_virtual_text handle invalid chars
...
Clients are supposed to supply only valid text, but if it is
invalid, translate it rather than messing up the screen
2018-10-13 16:37:17 +02:00
Justin M. Keyes
b11f5aa119
doc: xdg, MAINTAIN.md, channel-id, job control
...
- tutor: emphasize K
2018-10-11 19:32:31 +02:00
Björn Linse
075dc42fb2
test: replace wait() with pre-assertion in assert_term_colors
2018-10-06 11:36:09 +02:00
James McCoy
eb7b2c7912
Fix crash if --embed is used more than once
2018-10-03 07:29:08 -04:00
Björn Linse
bab3b0ad45
ui: reserve the right to split a screen redraw into multiple batches.
2018-10-02 10:52:37 +02:00
Björn Linse
43823acae2
ui: rename ext_newgrid to ext_linegrid
2018-10-01 21:24:15 +02:00
Justin M. Keyes
6e146d4132
test: check_cores(): Fix tmp dir exclusion ( #9061 )
...
tmpdir_get() may be an absolute path, but we invoke glob() with
a relative `initial_path`.
That can lead to this error:
[ ERROR ] test/functional/helpers.lua @ 752: after_each
test/helpers.lua:95: cannot open ./Xtest-tmpdir/nvim8jKCjR: No such file or directory
stack traceback:
test/helpers.lua:95: in function 'glob'
test/helpers.lua:273: in function 'check_cores'
test/functional/helpers.lua:757: in function <test/functional/helpers.lua:752>
2018-09-28 08:58:22 +02:00
Justin M. Keyes
990c147de3
test: Do not load entire log-file into memory
...
With DEBUG-level logging, after `make test`, log file could be 1+ GB.
2018-09-23 15:58:02 +02:00
Justin M. Keyes
22c83a4de9
swapfile: Always show swap dialog (E325)
...
If swapfile dialog prompts for input, it must be displayed to the user.
fix #8840
fix #9027
2018-09-23 15:58:01 +02:00
Justin M. Keyes
c3d24368a1
shortmess+=F: Hide :bnext, :bprev fileinfo messages
2018-09-23 15:58:01 +02:00
Björn Linse
4da5cb38d3
startup: always wait for UI with --embed, unless --headless also is supplied
2018-09-22 10:18:28 +02:00
Justin M. Keyes
ecdd2df88a
shell/logging: Fix E730 with verbose system({List}) #9009
...
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790
Steps to reproduce:
:set verbose=9
:call system(['echo'])
E730: using List as a String
2018-09-21 09:20:04 +02:00
Björn Linse
5487624730
startup: don't erase screen on :hi Normal
during startup
...
NB: existing `color default` test was actually enough to trigger the bug,
when ext_newgrid=false is used. I created the `:hi Normal` test as
I thought the builtin colors wouldn't set Normal (unless 'bg' is changed)
But as the root cause actually comes from `:hi Normal`, it makes sense
to still add the separate test (if `color default` here gets optimized to
become a no-op, or something).
2018-09-20 12:25:31 +02:00
Daniel Hahler
47d74bf32f
doc: test/README.md ( #9020 )
...
- testdir location
- no old style tests are left in the fixed list in the Makefile
[ci skip]
2018-09-20 09:37:53 +02:00
Justin M. Keyes
a316258d2c
test: system_spec: remove redundant clear()
2018-09-19 00:49:18 +02:00
Björn Linse
bd8d43c6fe
startup: wait for embedder before executing startup commands and files
...
Give embeders a chance to set up nvim, by processing a request before
startup. This allows an external UI to show messages and prompts from
--cmd and buffer loading (e.g. swap files)
2018-09-18 19:22:16 +02:00
Björn Linse
45f53b370b
buffer: add support for virtual text annotations
2018-09-17 10:41:29 +02:00
Ronan Pigott
9ed46a77e6
vim-patch:8.1.0355 Incorrect adjusting the popup menu ( #8996 )
...
Problem: Incorrect adjusting the popup menu for the preview window.
Solution: Compute position and height properl. (Ronan Pigott) Also show at
least ten items. (closes vim/vim#3414 )
2018-09-16 11:15:46 +02:00
Björn Linse
5056d40b16
getchar: allow <SID> in <Cmd> mapping
2018-09-13 11:02:24 +02:00
rpigott
59c5c4f006
test: popupmenu placement
2018-09-13 00:27:42 +02:00
Jan Edmund Lazo
95608136d5
tests: update expected output of :digraph command
2018-09-08 22:28:35 -04:00
ZyX
a9fa66b5b8
functests: Add tests
2018-09-06 02:12:36 +03:00
Justin M. Keyes
51d42917f0
test/win: job_spec: increase jobwait() timeout
...
powershell is slow, and this timeout is "worst case" so it doesn't make
the tests more costly, only avoids a false-positive.
close #8958
2018-09-05 22:05:05 +02:00
Justin M. Keyes
bfe82d4650
Merge #8888 from janlazo/vim-8.0.1020
2018-09-05 09:38:34 +02:00
Justin M. Keyes
608ff261ad
test: API validation: assert exact string
...
expect_err() matches against a pattern. Terminate the pattern with "$"
to check against buffer overrun.
ref #8931
2018-09-05 08:04:15 +02:00
Justin M. Keyes
db17d2c0fa
API: Avoid overrun when formatting error-message
...
msgpack_rpc_to_object (called by handle_request .. msgpack_rpc_to_array)
always NUL-terminates API Strings.
But handle_request .. msgpack_rpc_get_handler_for operates on a raw
msgpack_object, before preparation.
2018-09-05 08:04:15 +02:00
Jan Edmund Lazo
f8e042f732
tests: call getchar(1) in timer callback
...
Test changes from 8.0.1020 and 8.0.1048.
2018-09-04 10:00:17 -04:00
Justin M. Keyes
90519107f2
Merge #8921 'highlight: Fix after-EOL matches at cursor'
2018-09-04 07:05:20 +02:00
Björn Linse
7ff63fcdc0
Merge pull request #8942 from bfredl/attr_state
...
screen.lua: extend snapshot_util() to work with extension state
2018-09-03 12:16:49 +02:00
Ricky Zhou
2694fa759f
Add tests for highlighting after the end of a line.
2018-09-03 03:13:03 -07:00
Björn Linse
74937589d0
screen.lua: extend snapshot_util() to work with extension state
...
Simplify handling of attributes: collect new attributes in the same pass
as screen lines are rendered, instead of using two passes.
2018-09-03 10:36:55 +02:00
Justin M. Keyes
acdede50ce
test: Dump $NVIM_LOG_FILE contents ( #8926 )
...
Do this at the test-framework level instead of CI (Travis) scripts.
Then it works for QuickBuild and AppVeyor.
ref eb6dd3e42d
2018-08-28 22:13:34 +02:00
Daniel Hahler
643ef257b3
API: nvim_unsubscribe(): Handle unknown events #8745
...
close #8745
2018-08-28 10:20:19 +02:00
Björn Linse
3d88287e30
tests: introduce screen:expect{...} form
2018-08-27 15:15:49 +02:00
Matthieu Coudron
2e5c299f11
warn about tests without libintl
2018-08-25 23:13:34 +09:00
Jan Edmund Lazo
2c0998e104
vim-patch:8.0.1291: C indent wrong when * immediately follows comment
...
Problem: C indent wrong when * immediately follows comment. (John Bowler)
Solution: Do not see "/*" after "*" as a comment start. (closes vim/vim#2321 )
f8c53d3d26
2018-08-20 00:05:12 -04:00
Björn Linse
4a46ab8de9
cmdline: always use save_cmdline before command_line_enter
...
":normal :" might be invoked in various ways, so its safest to always
allow recursive invocation of cmdline mode
2018-08-17 10:48:48 +02:00
Jan Edmund Lazo
0bdd4e8393
oldtests: finish port of 8.0.1224
2018-08-15 01:27:30 -04:00
Björn Linse
fa4c260100
cursor_shape: use attribute ids instead of syntax ids
...
As attribute ids is the convention in the UI protocol
Also remove non-threadsafe calls in tui.c to syntax module.
2018-08-13 13:35:35 +02:00