Justin M. Keyes
2326a4ac3a
API: nvim_eval(): return non-generic VimL errors
...
Use the same pattern as nvim_call_function (_call_function).
2018-05-09 23:18:39 +02:00
Justin M. Keyes
c9f3174075
API: return non-generic VimL errors
...
- Return VimL errors instead of generic errors for:
- nvim_call_function
- nvim_call_dict_function
- Fix tests which were silently broken before this change.
This violates #6150 where we agreed not to translate API errors. But
that can be fixed later.
2018-05-09 23:18:38 +02:00
Justin M. Keyes
cabffb0182
API: nvim_call_dict_function: expect actual function, not name
2018-05-06 14:52:21 +02:00
Justin M. Keyes
fe7ab60af7
API: nvim_call_dict_function: eliminate internal
param
...
The `internal` param is difficult to explain, and will rarely be
anything but `true`. To avoid it, use a hack: check if the resolved
dict value starts with "function(".
2018-05-06 14:38:26 +02:00
Justin M. Keyes
19c2ce1901
refactor: nvim_call_dict_function
...
- Add test coverage for errors.
- Rename, rearrange.
2018-05-06 14:38:26 +02:00
Sebastian Witte
124275dd58
API: nvim_call_dict_function #3032
2018-05-06 14:38:26 +02:00
Justin M. Keyes
f46f138fb6
test: nvim_call_function: verify "too many arguments" error
2018-05-06 14:38:26 +02:00
James McCoy
5009317525
Merge pull request #8358 from mhinz/screen
...
[RFC] screen: avoid artifacts
2018-05-04 19:42:58 -04:00
Marco Hinz
ec1a7791b0
test: screen artifacts
2018-05-04 22:14:27 +02:00
Björn Linse
0d037ad978
messages: redraw tabline if it was overdrawn by messages
...
fixes #8354
Regression from #8088 , where we try to avoid clearing the screen
if not absolutely necessary
2018-05-04 09:15:19 +02:00
Jakson Alves de Aquino
58b210e114
:digraphs : highlight with hl-SpecialKey #2690
...
closes #2690
2018-05-01 11:33:50 +02:00
Justin M. Keyes
4744142fad
lint
2018-04-28 11:01:16 +02:00
Justin M. Keyes
bd17ef75b3
test/unit/undo_spec.lua: fixup after rebase #4985
2018-04-27 13:06:41 +02:00
Justin M. Keyes
d6a1640260
test/util: move general functions into global helpers
2018-04-27 13:06:41 +02:00
Christopher Waldon
34f29ac858
test/unit: some unit tests for undo.c #4985
2018-04-27 13:06:31 +02:00
Justin M. Keyes
53f11dcfc7
Merge #8218 'Fix errors reported by PVS'
...
closes #4983
2018-04-27 09:25:02 +02:00
Justin M. Keyes
ad60927d09
Merge #8304 "default to 'nofsync'"
2018-04-24 02:51:07 +02:00
Justin M. Keyes
77cb14cc6d
API: nvim__stats()
...
Use it to verify fsync() behavior.
2018-04-24 00:44:06 +02:00
Justin M. Keyes
32f3937477
test: fsync() codepaths
2018-04-23 21:29:07 +02:00
ZyX
03c2844b53
functests: Fix testlint errors
2018-04-22 20:32:25 +03:00
Justin M. Keyes
d05712fbe7
inccommand: pause :terminal redraws ( #8307 )
...
fix #5584
2018-04-22 12:26:16 +02:00
Nimit Bhardwaj
51af911a27
inccommand: do not execute trailing commands #8256
...
fix #7494
2018-04-21 13:06:46 +02:00
Justin M. Keyes
fe5f38d8bd
terminal: do not call redraw_buf_later() ( #8306 )
...
fixes #8290
2018-04-21 04:11:45 +02:00
Justin M. Keyes
be2a3ddd58
test: "Command-line option -s": avoid indeterminism ( #8305 )
...
closes #8303
2018-04-21 03:15:18 +02:00
Justin M. Keyes
c10a207a20
test/util: throttle retry() ( #8296 )
...
Avoid a hot loop in retry(), there's no need to retry more than 50/s.
Also use luv.sleep() to implement sleep() instead of spinning the
event-loop, so events are not silently discarded.
2018-04-20 23:56:50 +02:00
Justin M. Keyes
522443d6bf
test/util: retry(): also decorate non-string error
2018-04-18 09:47:51 +02:00
Justin M. Keyes
1dc497398e
test: nodejs_spec: allow more time for nodejs init
2018-04-18 09:42:56 +02:00
Justin M. Keyes
7a13611ba2
Merge #8276 'startup: Make -s - read from stdin'
2018-04-17 10:33:36 +02:00
Justin M. Keyes
48967695c4
test: tui_spec.lua: relax test ( #8289 )
...
Sometimes an extra FocusGained/FocusLost event might trigger. This
doesn't matter, we just want to test that the events were received in
cmdline-mode.
2018-04-16 23:35:58 +02:00
Andrew Pyatkov
84359a467f
terminal: resize to the max dimensions ( #8249 )
...
closes #8096
2018-04-16 22:25:23 +02:00
Justin M. Keyes
b2c066409d
job-control: children_kill_cb(): do not check elapsed time
...
1. Don't check elapsed time in children_kill_cb(), it's already implied
by the start-time of the timer itself.
2. Restart timer from children_kill_cb() for PTY jobs, to send SIGKILL
after SIGTERM. There is an edge case where SIGKILL might follow
SIGTERM too quickly, if jobstop() is called near the 2-second timer
window. But this edge case is not worth code complication.
2018-04-15 18:23:11 +02:00
Justin M. Keyes
7598e6cf17
Merge #8120 'test: win: prefer cmd.exe'
2018-04-15 18:16:37 +02:00
ZyX
f8d574225b
eval: Silence PVS/V547: E882 may be triggered
...
I failed to deduce why analyzer thinks E882 may not be triggered, though
conditions for triggering it are strange: it would trigger E882 only in the
single case “function returned non-number”. Cases “function thrown exception”,
or “built-in sorter encountered error” will neither yield E882 nor stop
sort()/uniq().
Note though that searching test code revealed that neither E702 nor E882 are not
tested anywhere.
2018-04-15 18:45:12 +03:00
geekodour
1e71978cf0
events: VimSuspend, VimResume #8280
...
closes #3648
ref #5959
2018-04-15 15:05:02 +02:00
Justin M. Keyes
1e7d5e8cdf
Merge #6272 'stdpath()'
2018-04-15 04:09:30 +02:00
Jan Edmund Lazo
5abfa94ed2
test: win: use "start" to test backgrounded job ( #8171 )
2018-04-15 02:43:18 +02:00
b-r-o-c-k
387fbcd95c
win: Fix reading from stdin
...
* Reading from stdin on Windows is fixed in the same way as it was in
#8267 .
* The file_read function was returning without filling the
destination buffer when it was called with a non-blocking file
descriptor.
2018-04-14 14:21:36 -05:00
b-r-o-c-k
ad999eaa77
Merge branch 'master' into s-dash-stdin
2018-04-14 14:17:51 -05:00
Justin M. Keyes
1c3a849881
API/nvim_command_output: handle :echon capture ( #8265 )
...
ref https://github.com/neovim/python-client/pull/290
2018-04-13 00:49:37 +02:00
Björn Linse
aea079a25d
channels: delay free so that libuv can cleanup handles
...
add test for a crash this caused
2018-04-12 18:22:47 +02:00
Justin M. Keyes
87f4d2592c
test/util: expect_err() ( #8257 )
...
other cleanup, ref #8245
2018-04-11 22:07:00 +02:00
Justin M. Keyes
704ba4151e
server: init v:servername if $NVIM_LISTEN_ADDRESS is invalid
...
Before this change, if $NVIM_LISTEN_ADDRESS was invalid, v:servername
was left empty.
2018-04-11 02:41:05 +02:00
Justin M. Keyes
507bda1c95
server: introduce --listen, deprecate $NVIM_LISTEN_ADDRESS
2018-04-11 02:41:05 +02:00
Justin M. Keyes
9f598e5765
serverstop(): return FALSE for invalid address
2018-04-11 01:58:41 +02:00
Justin M. Keyes
b11b681289
test/util: matches()
2018-04-11 01:58:41 +02:00
Justin M. Keyes
fa6415f13f
test/API: validate channel arg ( #8245 )
2018-04-08 03:01:15 +02:00
Justin M. Keyes
e8c39f72fd
Merge #8226 from justinmk/insert-mode-meta
2018-04-04 04:36:13 +02:00
Justin M. Keyes
224ebc0078
insert-mode: interpret unmapped META as ESC
...
closes #2454
closes #8213
ref #7972
2018-04-04 03:23:15 +02:00
Björn Linse
60e96a45b4
screen: winhl=Normal:Background should not override syntax ( #8093 )
...
fixes #7375
2018-04-02 14:21:14 +02:00
Justin M. Keyes
0c59ac1a2c
Merge #5908 'shada: Also save numbered marks'
2018-04-02 12:01:00 +02:00