pub fn execute_disconnect_commands(&mut self) {
            let BufferActions { nvim_conn: NeovimConnection { nvim_actions, initial_win_and_buf, .. }, buf, outp_ctx, .. } = self;
            if outp_ctx.opt.command_auto {
                let active_buf = nvim_actions.get_current_buffer();
                let switched = buf != &active_buf;
                if switched {
                    nvim_actions.switch_to_buffer(&buf);
                }
                nvim_actions.execute_disconnect_autocmd_on_current_buffer();
                if switched {
                    nvim_actions.switch_to_buffer(&active_buf);
                    if initial_win_and_buf.1 == active_buf && outp_ctx.restore_initial_buf_focus.is_vi_mode_insert() {
                        nvim_actions.set_current_buffer_insert_mode();
                    }
                }
            }
        }
/// Executes PageDisconnect autocommand if -C flag was provided.
/// Some time might pass since page buffer was created and output was started,
/// so this function might temporarily refocus on output buffer in order to run
/// autocommand
Executes PageDisconnect autocommand if -C flag was provided.
Some time might pass since page buffer was created and output was started,
so this function might temporarily refocus on output buffer in order to run
autocommand
Executes PageDisconnect autocommand if - C flag was provided . Some time might pass since page buffer was created and output was started so this function might temporarily refocus on output buffer in order to run autocommand
pub fn execute_disconnect_commands(&mut self) {
            let BufferActions { nvim_conn: NeovimConnection { nvim_actions, initial_win_and_buf, .. }, buf, outp_ctx, .. } = self;
            if outp_ctx.opt.command_auto {
                let active_buf = nvim_actions.get_current_buffer();
                let switched = buf != &active_buf;
                if switched {
                    nvim_actions.switch_to_buffer(&buf);
                }
                nvim_actions.execute_disconnect_autocmd_on_current_buffer();
                if switched {
                    nvim_actions.switch_to_buffer(&active_buf);
                    if initial_win_and_buf.1 == active_buf && outp_ctx.restore_initial_buf_focus.is_vi_mode_insert() {
                        nvim_actions.set_current_buffer_insert_mode();
                    }
                }
            }
        }
pub fn execute_disconnect_commands ( & mut self ) { let BufferActions { nvim_conn : NeovimConnection { nvim_actions , initial_win_and_buf , .. } , buf , outp_ctx , .. } = self ; if outp_ctx . opt . command_auto { let active_buf = nvim_actions . get_current_buffer ( ) ; let switched = buf != & active_buf ; if switched { nvim_actions . switch_to_buffer ( & buf ) ; } nvim_actions . execute_disconnect_autocmd_on_current_buffer ( ) ; if switched { nvim_actions . switch_to_buffer ( & active_buf ) ; if initial_win_and_buf . 1 == active_buf && outp_ctx . restore_initial_buf_focus . is_vi_mode_insert ( ) { nvim_actions . set_current_buffer_insert_mode ( ) ; } } } }
Executes PageDisconnect autocommand if -C flag was provided.
Executes PageDisconnect autocommand if - C flag was provided .
&mut self
&mut self