pub fn update_instance_buffer_title(&mut self, inst_name: &str) {
            let BufferActions { outp_ctx, buf, nvim_conn: NeovimConnection { nvim_actions, .. }, .. } = self;
            let (page_icon_key, page_icon_default) = ("page_icon_instance", "@ ");
            let mut buf_title = nvim_actions.get_var_or(page_icon_key, page_icon_default);
            buf_title.insert_str(0, inst_name);
            if let Some(ref buf_name) = outp_ctx.opt.name {
                if buf_name != inst_name {
                    buf_title.push_str(buf_name);
                }
            }
            nvim_actions.update_buffer_title(&buf, &buf_title);
        }
/// This function updates instance buffer title depending on its name and -n value.
/// Instance name will be prepended to the left of the icon symbol.
This function updates instance buffer title depending on its name and -n value.
Instance name will be prepended to the left of the icon symbol.
This function updates instance buffer title depending on its name and - n value . Instance name will be prepended to the left of the icon symbol .
pub fn update_instance_buffer_title(&mut self, inst_name: &str) {
            let BufferActions { outp_ctx, buf, nvim_conn: NeovimConnection { nvim_actions, .. }, .. } = self;
            let (page_icon_key, page_icon_default) = ("page_icon_instance", "@ ");
            let mut buf_title = nvim_actions.get_var_or(page_icon_key, page_icon_default);
            buf_title.insert_str(0, inst_name);
            if let Some(ref buf_name) = outp_ctx.opt.name {
                if buf_name != inst_name {
                    buf_title.push_str(buf_name);
                }
            }
            nvim_actions.update_buffer_title(&buf, &buf_title);
        }
pub fn update_instance_buffer_title ( & mut self , inst_name : & str ) { let BufferActions { outp_ctx , buf , nvim_conn : NeovimConnection { nvim_actions , .. } , .. } = self ; let ( page_icon_key , page_icon_default ) = ( " " , " " ) ; let mut buf_title = nvim_actions . get_var_or ( page_icon_key , page_icon_default ) ; buf_title . insert_str ( 0 , inst_name ) ; if let Some ( ref buf_name ) = outp_ctx . opt . name { if buf_name != inst_name { buf_title . push_str ( buf_name ) ; } } nvim_actions . update_buffer_title ( & buf , & buf_title ) ; }
This function updates instance buffer title depending on its name and -n value.
This function updates instance buffer title depending on its name and - n value .
&mut self
inst_name
&str
&mut self
inst_name
&str