Justin M. Keyes
0185152802
refactor(tests): get channel id via nvim_get_chan_info #27441
...
Minor "best practices" nudge.
2024-02-12 05:50:39 -08:00
Lewis Russell
795f896a57
test: rename (meths, funcs) -> (api, fn)
2024-01-12 18:59:14 +00:00
Lewis Russell
4f81f506f9
test: normalise nvim bridge functions
...
- remove helpers.cur*meths
- remove helpers.nvim
2024-01-12 17:53:27 +00:00
Justin M. Keyes
04f2f864e2
refactor: format test/*
2024-01-03 02:09:29 +01:00
Justin M. Keyes
2f17ef1fc4
fix(messages): use "Vimscript" instead of "VimL" #24111
...
followup to #24109
fix #16150
2023-06-22 04:09:14 -07:00
smolck
c7d30c152d
fix(api): notify dict watchers on nvim_set_var and vim.g setter
...
Co-authored-by: bfredl <bjorn.linse@gmail.com >
Co-authored-by: Christian Clason <c.clason@uni-graz.at >
2022-09-27 14:47:53 +02:00
Justin M. Keyes
6751d6254b
refactor(tests): use assert_alive() #15546
2021-09-01 09:42:53 -07:00
Daniel Hahler
1c5e347b8c
more tests
2021-03-30 21:55:51 -04:00
Daniel Hahler
aca002e7d5
test
2021-03-30 21:55:51 -04:00
Daniel Hahler
4c76b1e981
Test and initial fix for crash with dictwatcherdel
...
Fixes https://github.com/neovim/neovim/issues/11188 .
2021-03-30 21:55:50 -04:00
erw7
ab860cb5f6
dictwatcher: fix use-after-free #11495
...
fixes #11494
2019-12-02 02:09:30 -08:00
demiurg337
9d207fd876
dictwatcheradd(): support b:changedtick #9693
...
fixes #6635
closes #9693
2019-03-14 00:38:56 +01:00
Justin M. Keyes
fd4021387e
test: rename next_message() to next_msg()
2018-03-11 12:43:42 +01:00
ZyX
3025431c81
eval: Make sure that v:_null_dict does not crash dictwatcher*()
...
Ref #4615
2017-03-29 10:08:44 +03:00
ZyX
c8e63a8db8
eval: Move remaining get_tv_string* functions to eval/typval.c
2017-03-29 10:08:05 +03:00
ZyX
e18a578308
*: Move some dictionary functions to typval.h and use char*
...
Also fixes buffer reusage in setmatches() and complete().
2017-03-29 10:07:42 +03:00
Michael Ennen
ef8701610b
Allow lambdas to be used with jobs, timers and dictwatchers.
2017-02-14 17:38:19 -07:00
James McCoy
674db4b01f
eval: Remove dictwatcher from watchers queue before freeing it
...
This fixes a use-after-free noticed by ASAN which would occur when a
dictwatcher was still active on a dictionary when the dictionary was
freed.
fun! MakeWatch()
let d = {'foo': 'bar'}
call dictwatcheradd(d, 'foo', function('...'))
endfun
Patch-by: oni-link
Closes #5930
2017-01-12 14:47:43 -05:00
Michael Ennen
5e4eb18eb0
Add some tests and cleanup.
2016-12-12 10:17:35 -05:00
Björn Linse
0f681c80e1
Make partials work with jobs, timers, and dictwatchers.
2016-12-12 10:17:35 -05:00
Justin M. Keyes
16da3a6fe0
test: system(): backgrounded shell command
...
These tests are essentially affirming a regression vs Vim. In Vim,
:echo system('cat - &', 'foo')
returns "foo", because Vim internally wraps the command with shell-specific
syntax to redirect the streams from /dev/null[1].
That can't work in Nvim because we use pipes directly (instead of temp files)
and don't wrap the command with shell-specific redirection syntax.
References #3529
References #5241
[1] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_03_02
2016-10-19 01:01:27 +02:00