Justin M. Keyes
af946046b9
test: Rename meth_pcall to pcall_err
...
- Rename `meth_pcall`.
- Make `pcall_err` raise an error if the function does not fail.
- Add `vim.pesc()` to treat a string as literal where a Lua pattern is
expected.
2019-09-06 17:19:07 -07:00
ZyX
9c1865c7f8
*: Fix linter errors
2017-02-23 19:48:41 +03:00
ZyX
858ac9d8e5
api: Make sure dict_set_var doesn’t edit read-only values
...
Fixes #6147
2017-02-23 19:48:41 +03:00
ZyX
d8a7e5fdbb
eval: Forbid (un)locking b:changedtick
...
Port of vim-patch:8.0.0343
2017-02-23 19:48:41 +03:00
ZyX
9668d26a43
eval: Make sure islocked('b:.changedtick')
does not error out
...
Port of vim-patch:8.0.0345
2017-02-23 19:48:41 +03:00
ZyX
9972db79c8
eval: Specify more precise len for var_check_ro in get_lval
2017-02-23 19:46:45 +03:00
ZyX
d820daf076
functests: Add some more tests
2017-02-23 19:46:45 +03:00
ZyX
3277eff31a
buffer: Forbid unletting b:changedtick
2017-02-23 19:46:45 +03:00
ZyX
e2fbbb292f
eval: Refactor item_lock
...
If I am not mistaking, this commit should not change any functionality.
2017-02-23 19:46:45 +03:00
ZyX
f2c9fd312c
eval: Make sure that b:changedtick may not be unlocked via :unlo b:var
...
It still may be unlocked by `:unlock b:.var`.
2017-02-23 19:46:44 +03:00
ZyX
908e53d98d
functests: Add tests
...
Contains a number of FIXMEs.
2017-02-23 19:46:44 +03:00