mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
feat(remote): avoid --remote-ui infinite loop (#24465)
This commit is contained in:
@@ -921,6 +921,11 @@ static void remote_request(mparm_T *params, int remote_args, char *server_addr,
|
||||
os_errmsg(connect_error);
|
||||
os_errmsg("\n");
|
||||
os_exit(1);
|
||||
} else if (strequal(server_addr, os_getenv("NVIM"))) {
|
||||
os_errmsg("Cannot attach UI of :terminal child to its parent. ");
|
||||
os_errmsg("(Unset $NVIM to skip this check)");
|
||||
os_errmsg("\n");
|
||||
os_exit(1);
|
||||
}
|
||||
|
||||
ui_client_channel_id = chan;
|
||||
|
Reference in New Issue
Block a user