Justin M. Keyes
e72ecdb7ca
test/util: expect_msg_seq()
...
job_spec.lua on AppVeyor (Windows) often fails like this:
FAILED ] C:/projects/neovim/test/functional\core\job_spec.lua @ 72: jobs changes to given `cwd` directory
C:/projects/neovim/test/functional\core\job_spec.lua:81: Expected objects to be the same.
Passed in:
(table) {
[1] = 'notification'
[2] = 'stdout'
*[3] = {
[1] = 0
*[2] = {
[1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0' } } }
Expected:
(table) {
[1] = 'notification'
[2] = 'stdout'
*[3] = {
[1] = 0
*[2] = {
[1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0'
*[2] = '' } } }
stack traceback:
Message chunking is non-deterministic, so we need to try different
variants.
2018-02-18 19:19:03 +01:00
Nimit Bhardwaj
e9134421ab
vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times
2018-02-17 00:02:16 +05:30
Björn Linse
77286915a8
Merge pull request #8008 from bfredl/arrayfree
...
ex_getln: clear cmdline_block after it's freed
2018-02-14 19:23:11 +01:00
Björn Linse
d9497053e8
ex_getln: clear cmdline_block after it's freed
2018-02-14 19:20:28 +01:00
Björn Linse
6e5cb0debd
ui: refactor ui options
2018-02-13 20:48:51 +01:00
Justin M. Keyes
0f1bc5ddce
test/python: less-noisy Python skip-message
...
Developer can use :checkhealth to get more details, don't need to blast
the details in the skip-message every time.
2018-02-12 13:24:48 +01:00
Justin M. Keyes
9bf9cc69c1
test/arglist_spec: update to Vim 8.0.0721 behavior
2018-02-11 19:03:28 +01:00
Justin M. Keyes
4b7f7be301
test: port Test_edit_08() to Lua test
...
Test_edit_08() depends on special-case handling in has_compl_option()
and redrawing() which are in Vim but are not wanted in Nvim. Using a Lua
test instead of depending on workarounds in the core to make the VimL
test work.
2018-02-11 19:03:27 +01:00
Justin M. Keyes
7d12597d29
vim-patch:8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong direction
...
Problem: Using CTRL-G with 'incsearch' and ? goes in the wrong direction.
(Ramel Eshed)
Solution: Adjust search_start. (Christian Brabandt)
da5116da45
2018-02-11 15:27:56 +01:00
Justin M. Keyes
2cfc1b055b
Merge #7939 "fix crash: 'spell' and long lines"
2018-02-11 13:04:39 +01:00
Justin M. Keyes
ed0d135247
Merge #7939 "fix crash: 'spell' and long lines"
...
closes #7937
2018-02-11 13:03:24 +01:00
Björn Linse
5d8da126d0
ui/tui: highlighting refactor
...
Make HlAttr contain highlighting state for both color modes (cterm and rgb).
This allows us to implement termguicolors completely in the TUI.
Simplify some logic duplicated between ui.c and screen.c. Also avoid
some superfluous highlighting reset events.
2018-02-11 10:29:32 +01:00
Jan Edmund Lazo
c03a847884
win: enable backtick_expansion and shell output tests
2018-02-10 22:28:12 +01:00
Björn Linse
f75c4b39ec
shell: handle split-up UTF-8 sequences
2018-02-10 22:28:12 +01:00
Björn Linse
01cdeff626
tests: integrate ex_cmds/bang_filter_spec into ui/output_spec
...
they test the same thing. Filtering is tested elsewhere.
2018-02-10 22:28:12 +01:00
Björn Linse
60ce7d9e0a
shell: support bell
2018-02-10 22:28:12 +01:00
Justin M. Keyes
a265334406
defaults: sidescroll=1
...
ref #6289
2018-02-09 02:15:25 +01:00
Michael Brailsford
a6136e8b0b
screen.c: resolve neovim issue #7937
2018-02-07 13:46:37 -06:00
Justin M. Keyes
352a51e831
test: :! print binary data, control chars
...
closes #5442
closes #4142
ref #6618
ref #4376
ref #7844
ref #2958
ref #4338
2018-02-07 09:25:51 +01:00
Justin M. Keyes
d73dd1588c
:terminal Enter/Leave should not increment jumplist
...
The old behavior is probably not justified, for the usual reason:
terminal buffers may have interactive processes, so cursor placement is
arbitrary, therefore tracking it in the jumplist is useless (or worse).
N.B.: per the docstring for `checkpcmark()` it looks like we were
calling `checkpcmark()` and `setpcmark()` in the wrong order.
closes #3723
2018-02-07 00:01:58 +01:00
Björn Linse
6744f48d88
tests: cleanup bufhl test
2018-02-06 20:16:38 +01:00
Björn Linse
4e7d85e635
shell: update execute('!cmd')
test to new behavior
...
And similarly nvim_command_output test
2018-02-06 20:16:38 +01:00
Björn Linse
9af14506e5
shell: add test for binary and multibyte output
...
Also update existing tests for new (vim-compatible) newline behavior
2018-02-06 10:23:26 +01:00
James McCoy
de10ea55f3
lint
2018-02-03 22:19:08 -05:00
ZyX
2316a38dd1
tests: Make format_string('%q', ...) output more stable
...
It appears to be different on lua and luajit.
2018-02-02 07:28:56 -05:00
ZyX
a2dfeb8a16
functests: Improve error reporting in _check_parsing function
...
May be needed for unit tests as well though.
2018-02-02 07:28:56 -05:00
James McCoy
e243dbdc32
test: man_spec: Fix use of nested [[ quoting
...
Lua (not LuaJIT) complains about the "^[[" strings inside the expect,
since it sees them as nested quotes. Change the quoting to [=[ ]=] to
avoid the issue.
2018-02-02 07:28:56 -05:00
Justin M. Keyes
709a87d194
Merge #7463 'incsearch + hlsearch highlight all'
2018-02-01 23:25:55 +01:00
Justin M. Keyes
f8010ea3ec
test: robust cleanup, unique filenames #7950 ( #7950 )
...
Use unique filenames to avoid test conflicts.
Use read_file() instead of io.popen(), to ensures the file is closed.
Use helpers.rmdir(), it is far more robust than lfs.
closes #7911
2018-02-01 03:12:37 +01:00
Justin M. Keyes
648fed975e
os_system(): do not set up input stream for empty string #7951
...
Test failure:
test/functional/eval/system_spec.lua: "works with an empty string"
E5677: Error writing input to shell-command: EPIPE
ref https://github.com/neovim/neovim/pull/6558#issuecomment-361061035
ref #6554
2018-02-01 02:28:54 +01:00
KunMing Xie
649123d07c
vim-patch:8.0.0358,8.0.0359 ( #7832 )
...
vim-patch:8.0.0358: invalid memory access in C-indent code
Problem: Invalid memory access in C-indent code.
Solution: Don't go over end of empty line. (Dominique Pelle, closes vim/vim#1492 )
60629d6425
vim-patch:8.0.0359: 'number' and 'relativenumber' are not properly tested
Problem: 'number' and 'relativenumber' are not properly tested.
Solution: Add tests, change old style to new style tests. (Ozaki Kiichi,
closes vim/vim#1447 )
dc9a081712
2018-01-30 21:21:29 +01:00
Mahmoud Al-Qudsi
5d2dd2ebe2
win: has("wsl") on Windows Subsystem for Linux #7330
...
Per CMAKE docs, CMAKE_HOST_SYSTEM_VERSION is the result of `uname -r`:
https://cmake.org/cmake/help/v3.4/variable/CMAKE_HOST_SYSTEM_VERSION.html?highlight=uname
A numeric version string for the system. On systems that support
uname, this variable is set to the output of uname -r. On other
systems this is set to major-minor version numbers.
On Windows it is something like "6.1", so it won't match ".*-Microsoft".
Closes #7329
2018-01-30 21:12:49 +01:00
KunMing Xie
2a1a624878
vim-patch:8.0.0443: terminal width is set to 80 in test3 ( #7933 )
...
Problem: Terminal width is set to 80 in test3.
Solution: Instead of setting 'columns' set 'wrapmargin' depending on
'columns.
38a3d6c960
2018-01-30 20:15:05 +01:00
Justin M. Keyes
397ff2c35b
Merge #5822 'mouse.c: Fix mouse click on multibyte + concealed'
2018-01-29 23:50:43 +01:00
Jan Edmund Lazo
41b3c7850f
test: use helpers.pathroot() to avoid a syscall
2018-01-29 00:05:35 -05:00
Tommy Allen
1813c53e8d
Updated tests
2018-01-28 23:47:11 -05:00
Jan Edmund Lazo
0578087e5e
test: osx: try resolve($TMPDIR)
2018-01-28 13:58:56 -05:00
Jan Edmund Lazo
5c09f37d4a
test: fix failed tests with $TMPDIR in QuickBuild
2018-01-28 13:58:56 -05:00
Jan Edmund Lazo
7ac21332cf
Revert "test: fix failed test cases with tmpdir = $TMPDIR"
...
This reverts commit f7fe3012204169f22412194a78f196ffc72bb8c3.
Fails on QuickBuild because it uses a non-local path.
Need a environment-agnostic solution
2018-01-28 13:58:56 -05:00
Jan Edmund Lazo
28236867a0
test: fix failed test cases with tmpdir = $TMPDIR
2018-01-28 13:58:55 -05:00
Jan Edmund Lazo
c08c09add7
test: try $TMPDIR for temporary directory
2018-01-28 13:58:55 -05:00
Jan Edmund Lazo
5a39d2d00e
test: fnamemodify with :8 filename modifier
2018-01-28 13:58:54 -05:00
Jan Edmund Lazo
984a93df96
win: enable legacy/fnamemodify_spec.lua
2018-01-28 13:58:54 -05:00
Jan Edmund Lazo
eb59dd6547
fixup: get network drive only, not entire path
2018-01-28 13:58:54 -05:00
Jan Edmund Lazo
534abe4aaf
test: win: get current network drive via io.popen
2018-01-28 13:58:53 -05:00
Jan Edmund Lazo
a619c3fcf9
test: win: add tests for shellslash
2018-01-28 13:58:51 -05:00
Justin M. Keyes
afbdafffc2
test: fnamemodify()
2018-01-28 13:58:51 -05:00
George Zhao
499c9a1553
test/win: fix some environment assumptions #7912
...
fix #7909
fix #7910
2018-01-28 19:10:18 +01:00
Justin M. Keyes
300d3651e2
Merge #7919 from hardenedapple/langremap-after-map
2018-01-27 16:26:14 +01:00
Matthew Malcomson
f2ea15f364
Add some tests for 'langmap'
2018-01-27 11:20:10 +00:00