Sean Dewar
6b4970f6e0
feat(api): allow open_win/win_set_buf in the cmdwin in some cases
...
Problem: As discussed on Matrix, there was some interest in having
`nvim_open_win` again be able to open floats in the cmdwin (e.g: displaying a
hover doc related to what's in the cmdwin). After #23228 , this was disallowed.
Solution: Allow `nvim_open_win` in the cmdwin as long as `!enter` and
`buffer != curbuf` (the former can cause all sorts of issues, and the latter
can crash Nvim after closing cmdwin). Also allow `nvim_win_set_buf` in a similar
fashion.
Note that we're not *entirely* sure if this is 100% safe (cmdwin is a
global-state-using-main-loop-calling beast), but this seems to work OK..?
Also:
- Check the buffer argument of `nvim_open_win` earlier, and abort if it's
invalid (it used to still open a window in this case).
- Untranslate `e_cmdwin` errors in the API (other errors in the API are not
translated: although not detailed in the API contract yet, errors are
supposed to be stable).
2023-07-26 20:44:46 +01:00
..
2023-07-26 20:44:46 +01:00
2023-07-25 05:07:13 -07:00
2023-07-25 05:07:13 -07:00
2023-06-26 11:29:12 +02:00
2023-06-25 17:14:28 +02:00
2023-07-25 05:07:13 -07:00
2023-07-25 05:07:13 -07:00
2019-05-09 20:27:11 -04:00
2023-07-17 18:27:16 +02:00
2022-12-02 16:05:00 +01:00
2023-07-18 15:42:30 +01:00
2023-07-08 15:06:36 +02:00
2023-04-17 15:46:24 +08:00
2023-07-25 20:58:09 +08: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-07-25 05:07:13 -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
2022-10-29 17:41:22 +02:00
2023-06-25 17:14:28 +02:00
2023-06-25 17:14:28 +02:00
2023-02-28 15:14:03 +01:00
2023-06-22 03:44:51 -07:00
2023-06-26 11:16:55 +02:00
2023-06-22 03:44:51 -07:00
2023-07-25 05:07:13 -07:00
2023-04-29 09:20:52 +08: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-07-16 18:39:45 +08:00
2023-05-13 21:33:22 +02:00
2023-07-21 04:42:47 -07:00
2023-07-25 05:07:13 -07:00
2023-07-22 15:42:25 +08:00
2023-07-06 14:57:46 +08:00
2023-07-02 11:17:23 +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
2022-10-14 08:01:13 -07:00
2023-07-25 05:07:13 -07:00
2023-07-17 17:09:16 +01:00
2023-07-25 20:58:09 +08:00
2023-06-29 07:04:46 +08:00
2022-12-11 18:41:26 -08:00
2023-07-25 05:07:13 -07:00
2023-07-08 16:06:46 +02:00
2023-06-25 17:14:28 +02:00
2023-05-05 18:15:44 +02:00
2023-07-25 20:58:09 +08:00
2023-06-29 14:14:14 -07:00
2018-10-29 09:55:07 +01:00
2023-01-01 15:05:13 +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-22 03:44:51 -07:00
2023-07-14 06:46:16 +08:00
2023-06-26 11:29:12 +02:00
2023-04-23 15:22:55 +02:00
2023-06-25 17:14:28 +02:00
2023-02-21 23:50:29 +08:00
2023-07-14 06:46:16 +08: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-07-25 05:07:13 -07:00
2023-04-04 19:07:33 +02:00
2023-07-25 05:07:13 -07:00
2022-09-26 17:43:23 +08:00
2023-07-25 05:07:13 -07:00
2023-07-16 18:39:45 +08:00
2023-05-15 09:38:32 +02:00
2023-06-26 11:29:12 +02:00
2023-07-18 12:24:53 +01:00
2023-02-21 23:50:29 +08:00
2023-07-25 05:07:13 -07:00
2023-07-25 05:07:13 -07:00
2023-06-11 12:40:22 +01:00
2023-05-15 09:38:32 +02:00
2023-02-21 23:50:29 +08:00
2023-04-23 15:22:55 +02:00
2022-02-24 18:13:44 +08:00
2023-04-11 19:10:36 +02:00
2023-01-03 10:07:43 +00:00
2022-02-24 18:13:44 +08:00
2023-01-01 15:05:21 +01:00
2023-06-25 17:14:28 +02:00
2023-01-01 15:05:21 +01:00
2023-06-19 08:40:33 -07:00
2023-06-25 17:14:28 +02:00
2023-01-01 15:05:21 +01:00
2023-07-25 05:07:13 -07: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
2023-01-01 15:05:21 +01: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-01-01 15:05:21 +01:00
2023-06-26 11:29:12 +02:00
2023-07-25 05:07:13 -07:00
2023-01-01 15:05:21 +01:00
2023-07-25 05:07:13 -07: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-07-04 23:45:35 +02:00
2023-06-25 17:14:28 +02:00
2023-07-25 05:07:13 -07:00
2023-05-13 21:33:22 +02:00
2023-06-25 17:14:28 +02:00