Justin M. Keyes
7d20907724
test/OpenBSD: skip some tests
...
Temporary workaround to unblock CI for OpenBSD.
2019-09-01 22:49:33 -07:00
Justin M. Keyes
605f05f635
test: shell-test.c: flush all streams
2019-09-01 22:49:33 -07:00
Justin M. Keyes
78ec7981c8
screen.lua: dump payload on handler failure
...
For debugging failures like:
test/functional/helpers.lua:240: test/functional/ui/screen.lua:898:
bad argument #1 to 'unpack' (table expected, got number)
test/functional/helpers.lua:240: test/functional/ui/screen.lua:708:
attempt to index local 'item' (a number value)
ref #10804
2019-09-01 22:49:33 -07:00
Justin M. Keyes
c062149d5b
test: "can have two timers": retry()
...
ref #10768
2019-09-01 22:49:33 -07:00
Edd Barrett
b64af88c84
CI/OpenBSD: run functional tests
...
Adapt some tests for OpenBSD:
- scrollback_spec:
- seq(1) is not available on OpenBSD: we'd use jot(1).
- Instead use a (hopefully) portable awk(1) snippet.
- channels_spec
- job_spec
- tui_spec
2019-09-01 22:49:33 -07:00
Justin M. Keyes
d1bed81ad8
PVS/V547: Expression is always false
...
ll_get_or_alloc_list() never fails because OOM is an abort condition.
2019-09-02 04:50:22 +02:00
Björn Linse
fb19aeeb33
API: make nvim_win_set_option() set window-global, not buffer-local #9110
...
NB: the `!(flags & SOPT_GLOBAL)` exception is for 'statusline'.
Because `:set statusline=...` sets the global value for _all_ windows,
`:setlocal` is the best we can do there. This is a one-of-a-kind option
that doesn't work like any other option.
2019-09-01 19:38:50 -07:00
Justin M. Keyes
b10d703213
Merge #10896 'paste: one undo-block'
2019-09-01 19:12:13 -07:00
Justin M. Keyes
8560bafc6c
paste: redraw at end
...
Attempt to fix test failure since 976c6667e1
removed per-chunk redraw:
ERROR test/functional/terminal/tui_spec.lua: TUI paste: cmdline-mode inserts 1 line
test/functional/terminal/tui_spec.lua:367: in function <test/functional/terminal/tui_spec.lua:360
Expected:
|*foo |
|* |
|{4:~ }|
|{4:~ }|
|{5:[No Name] [+] }|
|:"line 1{1:"} |
|{3:-- TERMINAL --} |
Actual:
|* |
|*{4:~ }|
|{4:~ }|
|{4:~ }|
|{5:[No Name] [+] }|
|:"line 1{1:"} |
|{3:-- TERMINAL --} |
2019-09-02 03:34:01 +02:00
Justin M. Keyes
976c6667e1
paste: one undo-block per stream
...
- All "chunks" in a paste-stream should form a single undo-block. Side
effect of 7a85792884
was to create an undo-block for each chunk.
- Also: remove old :redraw force logic, irrelevant after 7a85792884
.
2019-09-02 02:27:13 +02:00
Jan Edmund Lazo
938be1e0ab
vim-patch:8.0.1534: C syntax test fails in gvim #10909
...
Problem: C syntax test fails when using gvim
Solution: Force running in a terminal. Check that 'background' is correct
even when $COLORFGBG is set.
b7ea7cb8e4
2019-09-01 17:00:50 -07:00
Björn Linse
801fe799ff
Merge pull request #10382 from abdelhakeem/waituntil
...
eval: add wait()
2019-09-01 23:27:18 +02:00
Abdelhakeem
b447bdb68c
fixup! eval: add wait() test
2019-09-01 21:17:14 +02:00
Abdelhakeem
2d3f39c729
eval: add wait() test
2019-09-01 21:17:14 +02:00
Abdelhakeem
7844501c2b
eval: add wait()
...
closes #10362
2019-09-01 21:17:14 +02:00
Björn Linse
9df3a676e7
Merge pull request #10400 from bfredl/msg_grid
...
Dedicated message grid.
2019-09-01 20:25:36 +02:00
Justin M. Keyes
2f37c24348
Merge #10733 from justinmk/test-fixes
...
test: use shell-test (avoid system shell)
2019-09-01 11:13:29 -07:00
Justin M. Keyes
78a2bbaa4b
Merge #10906 from janlazo/vim-8.0.1241
...
vim-patch:8.0.{1241,1246,1260}
2019-09-01 10:11:10 -07:00
Björn Linse
14615f7f67
screen: add some documentation of internals of msg_grid implementation
2019-09-01 18:53:55 +02:00
Justin M. Keyes
2c1749ce44
test: assert_alive()
2019-09-01 09:03:46 -07:00
Justin M. Keyes
f63d952ca2
test: use shell-test (avoid system shell)
2019-09-01 09:03:46 -07:00
Justin M. Keyes
641c5b3f08
test/inccommand_spec: avoid indeterminism
...
- Use shell-test.c to avoid the squishiness of system shells.
- Use screen:expect_unchanged() to avoid hardcoded (brittle) test.
Fails correctly if 5020daa6e5
is reverted (remove terminal_check(),
restore redraw() in refresh_timer_cb()):
[ ERROR ] test/functional/ui/inccommand_spec.lua @ 2550: :substitute with inccommand during :terminal activity
test/functional/helpers.lua:402:
retry() attempts: 2
test/functional/ui/screen.lua:579: Row 8 did not match.
Expected:
|foo bar baz |
|bar baz fox |
|bar foo baz |
|{15:~ }|
|{15:~ }|
|{15:~ }|
|{11:[No Name] [+] }|
|*26: xxx |
|27: xxx |
|28: xxx |
|29: xxx |
|30: xxx |
| |
|{10:term }|
|:%s/foo/ZZZ^ |
Actual:
|foo bar baz |
|bar baz fox |
|bar foo baz |
|{15:~ }|
|{15:~ }|
|{15:~ }|
|{11:[No Name] [+] }|
|*107: xxx |
|108: xxx |
|109: xxx |
|110: xxx |
|111: xxx |
| |
|{10:term }|
|:%s/foo/ZZZ^ |
2019-09-01 09:03:46 -07:00
Marco Hinz
53b7f60805
vim-patch:8.1.0141: :cexpr no longer jumps to the first error #10901
...
Problem: :cepxr no longer jumps to the first error.
Solution: Use the quickfix list identifier. (Yegappan Lakshmanan)
Fixes https://github.com/neovim/neovim/issues/10895
2019-09-01 08:46:07 -07:00
Jan Edmund Lazo
57327bb483
vim-patch:8.0.1217: remote eval to inspect vars in :debug #10903
...
Problem: Can't use remote eval to inspect vars in debug mode.
Solution: Don't discard the call stack in debug mode. (closes vim/vim#2237 , vim/vim#2247 )
d99388ba85
2019-09-01 08:42:47 -07:00
Jan Edmund Lazo
8a187aee8c
vim-patch:8.0.1260: using global variables for WaitFor()
...
Problem: Using global variables for WaitFor().
Solution: Use a lambda function instead. Don't check a condition if
WaitFor() already checked it.
ab8b1c14a3
2019-09-01 11:33:17 -04:00
Jan Edmund Lazo
8495e50273
vim-patch:8.0.1246: popup test has an arbitrary delay
...
Problem: Popup test has an arbitrary delay.
Solution: Wait for the ruler to show. (James McCoy)
b315876efa
2019-09-01 11:28:48 -04:00
Jan Edmund Lazo
8e1adedb26
vim-patch:8.0.1241: popup test is flaky
...
Problem: Popup test is flaky. (James McCoy)
Solution: Increase the wait time. (Dominique Pelle)
89c394faca
2019-09-01 11:27:51 -04:00
Björn Linse
e04b9e7c78
test/ui: update tests for new msg_grid implementation
2019-09-01 15:55:10 +02:00
Björn Linse
b51ba122c1
screen: use dedicated message grid
...
add proper msg_set_pos event, delet win_scroll_over_*
make compositor click through unfocusable grids
add MsgArea attribute for the message/cmdline area, and add docs and tests
2019-09-01 15:55:10 +02:00
Björn Linse
9cec097ffa
batch draw :ls
2019-09-01 13:21:40 +02:00
Björn Linse
27786df6a3
test/ui: make screen:expect() print full state when height does not match
2019-09-01 13:21:40 +02:00
Jan Edmund Lazo
e29b89ca54
vim-patch:8.1.1950: using NULL pointer after an out-of-memory ( #10902 )
...
Problem: Using NULL pointer after an out-of-memory.
Solution: Check for NULL pointer. (Dominique Pelle, closes vim/vim#4881 )
4bbfb0f3cc
2019-08-31 21:34:25 +02:00
Björn Linse
25e0a449bb
Merge pull request #10878 from bfredl/pastedefer
...
TUI: defer nvim_paste event properly
2019-08-31 11:18:35 +02:00
Björn Linse
2c605d1f22
tui/input: remove "cancel paste" logic which should be redundant
2019-08-31 09:20:24 +02:00
Björn Linse
dff06a90e4
api: make nvim_put support "\022{NUM}" regtype as returned by getregtype()
2019-08-31 09:20:24 +02:00
Björn Linse
f8b5d6e124
events: loop_schedule() is unclear, rename it loop_schedule_fast()
2019-08-31 09:20:24 +02:00
Björn Linse
7a85792884
tui/input: defer nvim_paste properly.
...
Otherwise cursor and redraw code for normal and insert mode will not run. The
"tickle" workaround was used for this instead, and can now be removed.
The builtin vim.lua got the name
[string "-- Nvim-Lua stdlib: thevimmodule (:help l..."]
in error messages. Fix it to something reasonable.
2019-08-31 09:20:24 +02:00
Daniel Hahler
8a03acb8da
vim-patch:8.1.1947: when executing one test the report doesn't show it #10893
...
Problem: When executing one test the report doesn't show it.
Solution: Adjust the regexp. (Daniel Hahler, closes vim/vim#4879 )
60b1bcfe92
2019-08-30 22:48:46 +02:00
Daniel Hahler
16c289f217
vim-patch:8.1.1941: getftype() test fails on Mac #10894
...
Problem: getftype() test fails on Mac.
Solution: Skip /dev/fd/.
ad5db44c01
2019-08-30 22:47:28 +02:00
Daniel Hahler
6024fb5267
vim-patch:cb00f0393 ( #10892 )
...
Add missing test file.
cb00f03933
2019-08-30 18:47:42 +02:00
Jaskaran Singh
ab560739ac
vim-patch:8.0.0930: terminal buffers are stored in the viminfo file ( #10889 )
...
Problem: Terminal buffers are stored in the viminfo file while they can't
be useful.
Solution: Skip terminal buffers for file marks and buffer list
e62780543f
2019-08-30 18:46:54 +02:00
Daniel Hahler
e03a4f965e
scripts/vim-patch.sh: massage args for git-log [ci skip] ( #10888 )
...
Replace "src/nvim/" => "src/".
Replace ".*/.vim-src/" => "".
This allows to use tab completion based on existing files in Neovim's
source, or via .vim-src.
Previously you would have to typically remove the "nvim/" part manually
yourself.
2019-08-30 16:46:29 +02:00
Daniel Hahler
dd025a18c1
vim-patch:8.1.0950: using :python sets 'pyxversion' even when not executed ( #10891 )
...
Problem: Using :python sets 'pyxversion' even when not executed.
Solution: Check the "skip" flag. (Shane Harper, closes vim/vim#3995 )
14816ad6e5
2019-08-30 16:43:21 +02:00
Daniel Hahler
1ab442db90
vim-patch:8.1.0212: preferred cursor column not set in interfaces ( #10890 )
...
Problem: Preferred cursor column not set in interfaces.
Solution: Set w_set_curswant when setting the cursor. (David Hotham,
closes vim/vim#3060 )
53901442f3
2019-08-30 16:42:19 +02:00
Justin M. Keyes
06e693cdc9
Merge #10884 'API: nvim_paste: add crlf
parameter'
2019-08-30 09:15:43 +02:00
Justin M. Keyes
f5fd699c52
test: vim.paste() cancel
2019-08-30 08:33:14 +02:00
Justin M. Keyes
b6192a9920
API: nvim_paste: add crlf
parameter
2019-08-30 08:33:14 +02:00
Daniel Hahler
4b8a16153e
tests: check_logs: improve error message ( #10887 )
...
Before:
[ ERROR ] test/functional/helpers.lua @ 812: after_each
test/helpers.lua:156: assertion failed!
stack traceback:
test/helpers.lua:156: in function 'check_logs'
test/functional/helpers.lua:816: in function <test/functional/helpers.lua:812>
2019-08-30 08:26:55 +02:00
Daniel Hahler
7d53887352
Merge pull request #10855 from blueyed/out_data_decide_throttle
...
Revisit out_data_decide_throttle
2019-08-30 07:46:24 +02:00
Justin M. Keyes
56e570f8af
Merge #10886 from janlazo/vim-8.1.1938
...
vim-patch:8.1.{233,1938}
2019-08-30 07:42:57 +02:00