Files
neovim/runtime/doc
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
..
2023-06-25 17:25:47 +02:00
2023-06-26 11:29:12 +02:00
2023-06-25 17:14:28 +02:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-04-17 15:46:24 +08:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-04-04 19:07:33 +02:00
2023-06-25 17:14:28 +02:00
2023-06-27 10:21:27 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2021-09-10 08:48:27 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-26 11:29:12 +02:00
2023-06-27 10:21:27 -07:00
2023-06-19 02:24:44 -07:00
2023-06-25 17:14:28 +02:00
2023-05-13 21:33:22 +02:00
2023-06-27 10:21:27 -07:00
2023-06-27 10:21:27 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2022-10-14 08:01:13 -07:00
2023-06-26 11:29:12 +02:00
2022-12-11 18:41:26 -08:00
2023-06-27 10:21:27 -07:00
2023-06-22 10:18:24 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2018-10-29 09:55:07 +01:00
2023-06-25 17:14:28 +02:00
2015-08-15 15:25:30 -03:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-26 11:29:12 +02:00
2023-04-23 15:22:55 +02:00
2023-06-11 12:40:22 +01:00
2023-01-01 15:05:13 +01:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-05-13 21:33:22 +02:00
2023-06-11 12:40:22 +01:00
2023-04-04 19:07:33 +02:00
2023-06-22 10:18:24 +02:00
2022-09-26 17:43:23 +08:00
2023-06-25 17:14:28 +02:00
2023-05-15 09:38:32 +02:00
2023-06-26 11:29:12 +02:00
2022-07-26 11:26:23 +02:00
2023-06-11 12:40:22 +01:00
2023-05-15 09:38:32 +02:00
2023-04-23 15:22:55 +02:00
2023-04-11 19:10:36 +02:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:14:28 +02:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2021-05-01 22:29:03 -04:00
2023-06-25 17:14:28 +02:00
2018-10-29 10:01:44 +01:00
2021-04-29 09:27:19 -04:00
2023-06-25 17:14:28 +02:00
2023-06-26 11:29:12 +02:00
2023-06-25 17:14:28 +02:00
2021-04-29 20:42:16 -04:00
2023-06-26 11:29:12 +02:00
2023-06-27 10:21:27 -07:00
2023-06-25 17:14:28 +02:00
2021-04-27 09:21:34 -04:00
2023-06-19 08:40:33 -07:00
2023-01-03 10:07:43 +00:00
2023-06-25 17:25:47 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:25:47 +02:00
2023-05-13 21:33:22 +02:00
2023-06-25 17:14:28 +02:00