Daniel Hahler
3d1531aee5
API: include invalid buffer/window/tabpage in error message ( #11712 )
2020-01-14 09:21:10 +01:00
Jan Edmund Lazo
3a3fb08602
vim-patch:8.1.0851: feedkeys() with "L" does not work properly
...
Problem: feedkeys() with "L" does not work properly.
Solution: Do not set typebuf_was_filled when using "L". (Ozaki Kiichi,
closes vim/vim#3885 )
8d4ce56a19
2020-01-05 10:35:49 -05:00
Ghjuvan Lacambre
dc6077535f
API: fix crash on copy_object(kObjectTypeWindow) #11651
...
Closes #11646
2020-01-02 02:00:39 -08:00
Justin M. Keyes
27b678f577
gen_vimdoc.py: fix deprecated check
2019-12-30 00:15:49 -08:00
Jan Edmund Lazo
362c3a3ccf
api/vim: fix pvs/v1048
2019-12-26 00:29:14 -05:00
Björn Linse
440695c296
tree-sitter: implement query functionality and highlighting prototype [skip.lint]
2019-12-22 12:51:46 +01:00
Justin M. Keyes
a3b6c2a3dc
API: rename nvim_execute_lua => nvim_exec_lua
...
- We already find ourselves renaming nvim_execute_lua in tests and
scripts, which suggests "exec" is the verb we actually want.
- Add "exec" verb to `:help dev-api`.
2019-12-02 22:06:42 -08:00
Justin M. Keyes
c34130d13a
API: deprecate nvim_command_output
2019-12-02 20:52:06 -08:00
Justin M. Keyes
b1991f66d5
API: rename nvim_source => nvim_exec
...
- Eliminate nvim_source_output(): add boolean `output` param to
nvim_exec() instead.
2019-12-01 22:35:15 -08:00
Vikram Pal
bd43e011b5
API: nvim_source_output
...
- Similar to nvim_source but will capture the output
- Add meaningful VimL tracebacks for nvim_source
- Handle got_int
- Add error reporting
2019-12-01 19:07:57 -08:00
Justin M. Keyes
276c2da286
API: nvim_source: fix multiline input
...
- DOCMD_REPEAT is needed to source all lines of input.
- Fix ":verbose set {option}?" by handling SID_STR in get_scriptname().
closes #8722
2019-12-01 16:09:24 -08:00
Vikram Pal
0a8d145075
API: nvim_source: save/restore script context #11159
...
Use a constant for the script id.
2019-12-01 16:09:24 -08:00
Siddhant Gupta
6aa03e86da
API: nvim_source
2019-12-01 16:09:24 -08:00
Justin M. Keyes
f6e7857c54
floatwin: show error if window is closed immediately #11476
...
Autocmds may close window while it is being entered, then
win_set_minimal_style(wp) operates on an invalid pointer.
We could silently ignore this instead, but it is unlikely to be
intentional, so it is more useful to show an error.
fix #11383
2019-11-29 23:48:14 -08:00
notomo
4a77df2e51
[RFC] extmark: fix E315 in nvim_buf_set_extmark ( #11449 )
...
extmark: need to use buf instead of curbuf
2019-11-25 16:50:30 +01:00
Justin M. Keyes
fd5710ae9a
doc + extmarks tweaks #11421
...
- nvim_buf_get_extmarks: rename "amount" => "limit"
- rename `set_extmark_index_from_obj`
2019-11-25 01:08:02 -08:00
Dennis B
d5f14b8372
Clear 'cc' in nvim_open_win 'minimal' style #11361 ( #11427 )
...
* Clear 'cc' in nvim_open_win 'minimal' style #11361
Add 'colorcolumn' to the list of options that should be cleared when creating
a 'minimal'-style floating window.
2019-11-22 10:55:04 +01:00
Justin M. Keyes
af53a0c012
doc: Lua [ci skip] #11378
...
- Rework :help lua-commands
- Rename if_lua.txt => lua.txt
2019-11-17 19:06:59 -08:00
Justin M. Keyes
2d7e1c32a8
extmark: rename ExtendedMark => Extmark
2019-11-11 22:12:59 -08:00
Justin M. Keyes
54473e9a67
doc [ci skip]
2019-11-11 22:12:59 -08:00
Björn Linse
122426966e
Merge pull request #11356 from bfredl/extmark2
...
extmark API feature
2019-11-11 21:48:14 +01:00
Björn Linse
18a8b702c0
extmark: review changes
2019-11-11 20:18:15 +01:00
timeyyy
a9065a5051
nsmarks: initial commit
2019-11-11 19:43:15 +01:00
Timothy C Eichler
e757f4d536
namespace: add ns_initialized func
2019-11-11 19:43:15 +01:00
Marco Hinz
181486d7e6
api: fix typo in debug function name
2019-11-11 19:25:10 +01:00
Marco Hinz
1cb4674547
api: add nvim_buf_get_virtual_text() ( #11354 )
...
This adds the missing partner function of nvim_buf_set_virtual_text().
2019-11-10 16:38:04 +01:00
Justin M. Keyes
7a23b67d35
paste: Select-mode, Visual-mode #11360
...
fix #11344
2019-11-09 21:18:51 -08:00
Justin M. Keyes
9ef16a1628
doc: vim.fn, vim.call(), vim.api [ci skip]
2019-11-06 01:37:50 -08:00
Justin M. Keyes
efaf4732e2
lua/executor.c: use TRY_WRAP
2019-10-29 22:39:07 -07:00
Justin M. Keyes
ffdf8c4c12
Context: rename "buflist" => "bufs"
...
Given the other type names "jumps", "vars", etc., the name "buflist"
is somewhat unintuitive.
2019-09-14 18:57:35 -07:00
Justin M. Keyes
f2c75ef9b4
API: nvim_get_context: "opts" param
...
Since the parameter is already non-primitive, make it an `opts` map
instead of just a list, in case we want to extend it later.
2019-09-14 18:57:35 -07:00
Justin M. Keyes
6dd56d0902
UIAttach, UIDetach
...
doc: ginit.vim, gvimrc
fix #3656
2019-09-12 17:04:05 -07:00
Rui Abreu Ferreira
e9cf515888
UIAttach, UIDetach
2019-09-12 15:52:54 -07:00
Jan Edmund Lazo
6508215b5c
Remove excess <stdint.h>
2019-09-11 22:27:45 -04:00
Justin M. Keyes
06bfb07e35
doc
...
fix #10127
fix #5972
2019-09-11 00:10:27 -07:00
Daniel Hahler
1adbdb397d
doc: nvim_ui_pum_set_height [ci skip]
2019-09-10 23:27:00 -07:00
Björn Linse
e5d5fc0857
doc/API/lua: detaching Lua buffer callbacks
2019-09-09 10:52:12 -07:00
Justin M. Keyes
456f1d4bdd
doc: |api-fast| [ci skip]
2019-09-09 10:52:12 -07:00
Justin M. Keyes
81c3fa6c9d
doc
2019-09-09 09:53:19 -07:00
erw7
55b1126a22
Add nvim_ui_pum_set_height to api
2019-09-08 12:25:49 +09:00
Justin M. Keyes
8b06231612
Merge #10869 'vim-patch:8.1.{0309,0362,0365,0515,1946}'
2019-09-05 14:10:32 -07:00
Björn Linse
d5162afa2a
anchor float to buffer position
...
vim-patch:8.1.1645: cannot use a popup window for a balloon
2019-09-04 23:57:02 +02:00
erw7
a2e48b556b
vim-patch:8.1.0362: cannot get the script line number when executing a function
...
Problem: Cannot get the script line number when executing a function.
Solution: Store the line number besides the script ID. (Ozaki Kiichi,
closes vim/vim#3362 ) Also display the line number with ":verbose set".
f29c1c6aa3
2019-09-04 13:40:04 +09:00
Björn Linse
7e07efaff4
api: make try_end clean-up after an exception properly. Fixes #10809
...
Otherwise `force_abort` will cause an emsg() higher on the stack
to be converted to an exception, even though it is outside any
try/catch.
2019-09-02 23:01:16 +02:00
Justin M. Keyes
299331490e
API: nvim_buf_set_lines: handle 'nomodifiable' #10910
2019-09-01 22:04:20 -07:00
Björn Linse
fb19aeeb33
API: make nvim_win_set_option() set window-global, not buffer-local #9110
...
NB: the `!(flags & SOPT_GLOBAL)` exception is for 'statusline'.
Because `:set statusline=...` sets the global value for _all_ windows,
`:setlocal` is the best we can do there. This is a one-of-a-kind option
that doesn't work like any other option.
2019-09-01 19:38:50 -07:00
Justin M. Keyes
976c6667e1
paste: one undo-block per stream
...
- All "chunks" in a paste-stream should form a single undo-block. Side
effect of 7a85792884 was to create an undo-block for each chunk.
- Also: remove old :redraw force logic, irrelevant after 7a85792884 .
2019-09-02 02:27:13 +02:00
Björn Linse
b51ba122c1
screen: use dedicated message grid
...
add proper msg_set_pos event, delet win_scroll_over_*
make compositor click through unfocusable grids
add MsgArea attribute for the message/cmdline area, and add docs and tests
2019-09-01 15:55:10 +02:00
Björn Linse
7a85792884
tui/input: defer nvim_paste properly.
...
Otherwise cursor and redraw code for normal and insert mode will not run. The
"tickle" workaround was used for this instead, and can now be removed.
The builtin vim.lua got the name
[string "-- Nvim-Lua stdlib: thevimmodule (:help l..."]
in error messages. Fix it to something reasonable.
2019-08-31 09:20:24 +02:00
Justin M. Keyes
b6192a9920
API: nvim_paste: add crlf parameter
2019-08-30 08:33:14 +02:00