ZyX
4f10d42f82
buffer: Bind b:changedtick to b:['changedtick'], remove special cases
2017-02-23 19:46:44 +03:00
ZyX
0eab7ac4b9
api/buffer: Add nvim_buf_get_changedtick method
2017-02-23 19:46:44 +03:00
Justin M. Keyes
43309d1993
test/api: Specify handling of VimL errors, v:errmsg.
...
TODO: Also spec behavior of Press-Enter prompt for these API functions.
2016-10-24 01:10:23 +02:00
Justin M. Keyes
dc6cc4787c
api: Establish API naming convention. ( #5344 )
...
old name: new name:
--------------------------------------------------
nvim_name_to_color nvim_get_color_by_name
nvim_get_current_buffer nvim_get_current_buf
nvim_get_current_window nvim_get_current_win
nvim_get_buffers nvim_list_bufs
nvim_get_tabpages nvim_list_tabpages
nvim_get_windows nvim_list_wins
nvim_set_current_buffer nvim_set_current_buf
nvim_set_current_window nvim_set_current_win
nvim_change_directory nvim_set_current_dir
nvim_tabpage_get_window nvim_tabpage_get_win
nvim_tabpage_get_windows nvim_tabpage_list_wins
nvim_win_get_buffer nvim_win_get_buf
nvim_report_error nvim_err_writeln
Helped-by: Björn Linse <bjorn.linse@gmail.com >
Helped-by: ZyX <kp-pav@yandex.ru >
Helped-by: James McCoy <jamessan@jamessan.com >
2016-09-17 06:30:36 +02:00
Björn Linse
cd08e6cf72
api: make nvim[_obj]_set_var and _del_var not return the old value
2016-09-15 10:44:38 +02:00
Björn Linse
1c22cab2fd
api: consistently use nvim_ prefix and update documentation
2016-08-31 21:57:06 +02:00
ZyX
ff470bb853
functests: Check logs in lua code
...
It is otherwise impossible to determine which test failed sanitizer/valgrind
check. test/functional/helpers.lua module return was changed so that tests which
do not provide after_each function to get new check will automatically fail.
2016-06-10 21:50:49 +03:00
ZyX
f1ced96c28
api: Replace set_var(name, NIL) with del_var(name)
2016-04-18 02:47:13 +03:00
Björn Linse
f3645e422f
api/buffer: add tests for buffer_[gs]et_lines
2016-04-01 11:29:51 +02:00
Björn Linse
51c7818d42
api/buffer: introduce buffer_[gs]et_lines with new indexing convention.
...
-1 is index past the end, and -2 is the index of the last element.
This eliminates the need for include_start/include_end.
Allow the handling of out-of-bounds to be configurable.
2016-04-01 11:29:51 +02:00
Justin M. Keyes
7b56a8230f
test: buffer_spec: fix set_line invocation
...
- pcall result was always false because of wrong arity
- also re-arrange tests into it() blocks
2015-07-11 22:33:05 -04:00
Nick Hynes
c2f14bb89c
test: api: exercise out-of-bounds line slicing
2015-07-11 18:20:35 -04:00
Scott Prager
460843b4cd
api: Handle NULs and newlines in buffer_*_line.
2014-12-06 17:29:38 -05:00
Thiago de Arruda
0c2ec77ae0
test: Use lua to perform sanity API checks
...
Sanity API checks made by the python-client in the api-python travis target were
converted to lua and will now live in this repository. This will simplify
performing breaking changes to the API as it won't be necessary to send parallel
PRs the python-client.
2014-10-16 14:06:54 -03:00