ZyX
5e4976559a
functests: Partially uncomment <C-c> test
2017-06-28 14:34:12 +03:00
ZyX
0ed95423de
ex_getln: Call highlight callback inside :try
2017-06-28 14:26:23 +03:00
ZyX
493d250446
functests: Make “stops executing callback” test work
...
Needed to be adjusted to use input() (previously relied on side-effects of
executing `:cmd`) and dismiss something (hidden “Press ENTER” message?).
2017-06-28 13:58:51 +03:00
ZyX
36a84d8f4a
functests: Fix typo
2017-06-28 13:54:04 +03:00
ZyX
edc2a7ee46
functests: Make tests work with input()
...
There are still some issues: specifically, new “pending” test hangs busted.
2017-06-27 02:15:49 +03:00
ZyX
8e5134784c
functests: Comment out failing test
2017-06-27 01:55:21 +03:00
ZyX
71616fce0b
functests: Abstract away some ways to enter cmdline coloring mode
...
Reason: should actually switch to using input() coloring because other coloring
variants are eventually going away.
2017-06-27 01:54:08 +03:00
ZyX
95fe5614a0
functests: Add missing wait()
2017-06-27 01:34:54 +03:00
ZyX
407abb3a6c
eval,ex_getln: Add support for coloring input() prompts
2017-06-27 01:34:54 +03:00
ZyX
d82741f8c0
ex_getln: Add some more tests, fix some found errors
2017-06-27 01:34:54 +03:00
ZyX
3d25200127
functests: Start adding some tests
2017-06-27 01:34:54 +03:00
ZyX
476c28f433
functests: Fix screen.lua supplying dedent additional argument
2017-06-21 10:58:47 +03: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
d5839770ee
functests: Refactor redir_exec
2017-06-20 18:17:47 +03:00
ZyX
e57d4eef88
functests: Move function_spec to eval
2017-06-20 18:17:47 +03:00
Björn Linse
16ae369474
screen.c: make more highlights window specific
2017-06-14 20:31:14 +02:00
HiPhish
9f534f338a
mksession: Restore tab-local working directory #6859
...
The ':tcd' command is the first tab-specific command written to the file
and it is wrapped inside an 'if has('nvim')' block to keep the session
file compatible with Vim.
Closes #6678
2017-06-11 15:51:53 +02:00
Justin M. Keyes
16cce1ac17
Merge #6827 'Always enable logging'
2017-06-07 23:19:02 +02:00
James McCoy
bf4de3f6f7
functests/msgpack: Correct representation of literal INT64_MIN
...
In order to generate INT64_MIN from literal values, it's necessary to
use "-0x7fffffffffffffff - 1". Using "-0x8000000000000000" causes the
value to get clamped to INT64_MAX and then negated.
2017-06-06 21:38:31 -04:00
James McCoy
d69286c065
functests/msgpack: Use assert_equal() for more informative errors
2017-06-06 21:38:30 -04:00
Justin M. Keyes
b4b09afabd
test: iswin(): detect without nvim session
2017-06-07 00:27:26 +02:00
Justin M. Keyes
d07661b9a3
log: Fall back to CWD-relative .nvimlog
...
If if the resolved $NVIM_LOG_FILE *and* stdpath("data")/log cannot be
created (e.g. because the XDG data directory does not exist), fall back
to .nvimlog in the current direcrtory.
2017-06-07 00:27:26 +02:00
Justin M. Keyes
bb96b8219d
log: set $NVIM_LOG_FILE; fallback to $XDG_DATA_HOME/nvim/log
2017-06-07 00:26:56 +02:00
Justin M. Keyes
698ec9eb6e
loop_close: Avoid infinite loop, and log it.
...
Avoids a hang, and also helps diagnose issues like:
https://github.com/neovim/neovim/pull/6594#issuecomment-298321826
2017-06-07 00:26:21 +02:00
James McCoy
d707b2a171
vim-patch:8.0.0478
...
Problem: Tests use assert_true(0) and assert_false(1) to report errors.
Solution: Use assert_report().
37175409d7
2017-06-06 06:15:16 -04:00
Jonathan de Boyne Pollard
838277e28a
test: fix bashisms ( #6791 )
2017-06-01 00:46:00 +02:00
Justin M. Keyes
133f8bc628
Merge #4700 from AdnoC/keep-default-register
2017-05-31 23:43:40 +02:00
AdnoC
5908f562df
test: Fix and add cases for unnamed register
...
Also:
Add ru to shada tests with all keys
Add test for unset unnamed and register 0
2017-05-31 13:31:05 -04:00
AdnoC
beca4dc16c
eval/shada: Add testing for unnamed register with setreg and startup
2017-05-31 13:19:08 -04:00
Matthew Malcomson
033b1cb7d9
'pastetoggle': Revert support for multi-key value ( #6724 )
...
Reverts commit 337b6179df
Closes #6716 at the expense of not being able to use a
multi-key 'pastetoggle' manually.
Multi-key 'pastetoggle' can still be used when inserting the entire
option into the typebuffer at once (though the use here is
questionable).
Also remove those tests to do with waiting for the completion of
'pastetoggle' and mention in the documentation that 'pastetoggle'
doesn't wait for timeout.
2017-05-31 13:20:06 +02:00
Björn Linse
5a151555c8
sockets: don't deadlock when connecting to own pipe address
2017-05-29 19:02:49 +02:00
Björn Linse
6a75938758
channels: implement sockopen() to connect to socket
...
Helped-By: oni-link <knil.ino@gmail.com>
2017-05-29 19:02:49 +02:00
James McCoy
9cc185dc6d
Merge pull request #6680 from mhinz/listen/localhost
...
Use uv_getaddrinfo() for servers
2017-05-28 13:26:06 +00:00
James McCoy
6c135b89ee
eval: serverstart: Return finalized address to user
...
In the process of setting up the socket watcher, the address may be
changed (e.g., adding the OS-selected port).
2017-05-28 07:14:49 -04:00
TJ DeVries
45626de63f
get_keymap API ( #6236 )
...
* Add api function get keymap
nvim_get_keymap(mode)
nvim_buf_get_keymap(buffer, mode)
2017-05-25 12:41:53 +02:00
James McCoy
2dc27a8a78
shada: Remember whether "0 or "1 was the unnamed register
...
Ref #4645
2017-05-24 14:17:19 -04:00
Marco Hinz
afa781f420
Server tests: endpoint parsing in serverstart()
2017-05-22 01:05:40 +02:00
Marco Hinz
f913ba6e06
Server tests: use helpers.command()
2017-05-22 01:05:40 +02:00
Justin M. Keyes
bdd73fc07f
api/nvim_replace_termcodes: Document keycodes behavior
2017-05-20 22:20:32 +02:00
ZyX
df67785886
*: Fix all V641 errors
2017-05-20 03:25:22 +03:00
Justin M. Keyes
597d65b4b7
Merge #6741 from justinmk/progpath
2017-05-15 16:11:01 +02:00
Justin M. Keyes
4c5398bc40
startup: v:progpath fallback: path_guess_exepath
...
If procfs is missing then libuv cannot find the exe path.
Fallback to path_guess_exepath(), adapted from Vim findYourself().
Closes #6734
2017-05-15 15:01:52 +02:00
Justin M. Keyes
8e052f677e
Merge #6737 "options: make 'highlight' read-only"
2017-05-15 14:53:31 +02:00
Björn Linse
8d8b6224d9
options: make 'highlight' read-only
2017-05-15 07:22:31 +02:00
Justin M. Keyes
17531ed082
Merge #6480 from ZyX-I/colored-cmdline'/input-dict
2017-05-13 21:17:33 +02:00
ZyX
a59ddde721
functests: Reword regression test headers
2017-05-13 17:07:31 +03:00
ZyX
9906db985d
functests: Remove “correctly” from non-regression tests
2017-05-13 17:04:54 +03:00
Björn Linse
244a1f97db
Merge pull request #6704 from bfredl/luaexec
...
execute lua directly from the remote API
2017-05-13 15:06:41 +02:00
Björn Linse
f424189093
api: execute lua directly from the remote api
2017-05-13 15:03:42 +02:00