neovim/test/functional
Sean Dewar aa4e47f704
fix(api): disallow some more functions during textlock
Problem: nvim_buf_set_text(), nvim_open_term() and termopen() all change buffer
text, which is forbidden during textlock. Additionally, nvim_open_term() and
termopen() may be used to convert the cmdwin buffer into a terminal buffer,
which is weird.

Solution: Allow nvim_buf_set_text() and nvim_open_term() in the cmdwin, but
disallow nvim_open_term() from converting the cmdwin buffer into a terminal
buffer. termopen() is not allowed in the cmdwin (as it always operates on
curbuf), so just check text_locked().

Also happens to improve the error in #21055: nvim_buf_set_text() was callable
during textlock, but happened to check textlock indirectly via u_save();
however, this caused the error to be overwritten by an unhelpful "Failed to
save undo information" message when msg_list == NULL (e.g: an `<expr>` mapping
invoked outside of do_cmdline()).
2023-07-05 08:33:32 +01:00
..
api fix(edit): fix K_EVENT interfering with 'digraph' (#24258) 2023-07-05 12:06:14 +08:00
autocmd fix(events)!: trigger CursorMoved later on switching window (#23711) 2023-06-04 09:09:22 +08:00
core fix(startup)!: "nvim -l" message does not end with newline #24215 2023-07-01 14:48:12 -07:00
editor fix(api): nvim_parse_cmd error message in pcall() #23297 2023-07-01 06:33:51 -07:00
ex_cmds fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
fixtures refactor(lsp): extract common execute command functionality (#24065) 2023-06-20 18:36:18 +02:00
legacy test: check for ASAN properly (#24224) 2023-07-02 08:05:02 +08:00
lua fix(api, lua): make blank lines in a message work properly (#24244) 2023-07-04 07:19:02 +08:00
options fix(NVIM_APPNAME): show error message if $NVIM_APPNAME is invalid 2023-05-28 16:04:54 +02:00
plugin feat(lsp): move inlay_hint() to vim.lsp (#24130) 2023-06-30 11:33:28 +02:00
provider fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
shada test: don't unnecessarily specify win/buf for nvim_(get|set)_option_value 2023-05-22 13:02:07 +06:00
terminal fix(api): disallow some more functions during textlock 2023-07-05 08:33:32 +01:00
treesitter feat(treesitter): bundle markdown parser and queries (#22481) 2023-07-01 11:08:06 +02:00
ui perf(ui-ext): approximate scroll_delta when scrolling too much (#24234) 2023-07-04 16:48:53 +08:00
vimscript fix(api): disallow some more functions during textlock 2023-07-05 08:33:32 +01:00
example_spec.lua
helpers.lua fix(messages): use "Vimscript" instead of "VimL" #24111 2023-06-22 04:09:14 -07:00
preload.lua test: remove unused variable (#21552) 2022-12-29 07:20:42 +08:00