mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
aa4e47f704
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()). |
||
---|---|---|
.. | ||
api_functions_spec.lua | ||
buf_functions_spec.lua | ||
changedtick_spec.lua | ||
container_functions_spec.lua | ||
ctx_functions_spec.lua | ||
environ_spec.lua | ||
errorlist_spec.lua | ||
eval_spec.lua | ||
executable_spec.lua | ||
execute_spec.lua | ||
exepath_spec.lua | ||
fnamemodify_spec.lua | ||
functions_spec.lua | ||
getline_spec.lua | ||
glob_spec.lua | ||
has_spec.lua | ||
hostname_spec.lua | ||
input_spec.lua | ||
json_functions_spec.lua | ||
lang_spec.lua | ||
let_spec.lua | ||
map_functions_spec.lua | ||
match_functions_spec.lua | ||
minmax_functions_spec.lua | ||
modeline_spec.lua | ||
msgpack_functions_spec.lua | ||
null_spec.lua | ||
operators_spec.lua | ||
printf_spec.lua | ||
reltime_spec.lua | ||
screenchar_spec.lua | ||
screenpos_spec.lua | ||
server_spec.lua | ||
setpos_spec.lua | ||
sort_spec.lua | ||
special_vars_spec.lua | ||
string_spec.lua | ||
system_spec.lua | ||
timer_spec.lua | ||
uniq_spec.lua | ||
vvar_event_spec.lua | ||
wait_spec.lua | ||
writefile_spec.lua |