pub fn render(&mut self) {
        self.view.render_if_dirty(&self.text, &self.doc_ctx, self.styles.get_merged());
        if let Some(scrollto) = self.scroll_to {
            let (line, col) = self.view.offset_to_line_col(&self.text, scrollto);
            self.doc_ctx.scroll_to(&self.view.view_id, line, col);
            self.scroll_to = None;
        }
    }
// render if needed, sending to ui
render if needed, sending to ui
render if needed sending to ui
pub fn render(&mut self) {
        self.view.render_if_dirty(&self.text, &self.doc_ctx, self.styles.get_merged());
        if let Some(scrollto) = self.scroll_to {
            let (line, col) = self.view.offset_to_line_col(&self.text, scrollto);
            self.doc_ctx.scroll_to(&self.view.view_id, line, col);
            self.scroll_to = None;
        }
    }
pub fn render ( & mut self ) { self . view . render_if_dirty ( & self . text , & self . doc_ctx , self . styles . get_merged ( ) ) ; if let Some ( scrollto ) = self . scroll_to { let ( line , col ) = self . view . offset_to_line_col ( & self . text , scrollto ) ; self . doc_ctx . scroll_to ( & self . view . view_id , line , col ) ; self . scroll_to = None ; } }
render if needed, sending to ui
render if needed sending to ui
&mut self