fn insert_char(&mut self, c: char) {
        if self.position.cy == self.rows.len() {
            self.rows.push(Row::from(String::new(), self.syntax))
        }
        self.rows[self.position.cy].insert_char(self.position.cx, c);
        self.position.cx += 1;
        self.dirty = true;
    }
/// insert a char at the current position
insert a char at the current position
insert a char at the current position
fn insert_char(&mut self, c: char) {
        if self.position.cy == self.rows.len() {
            self.rows.push(Row::from(String::new(), self.syntax))
        }
        self.rows[self.position.cy].insert_char(self.position.cx, c);
        self.position.cx += 1;
        self.dirty = true;
    }
fn insert_char ( & mut self , c : char ) { if self . position . cy == self . rows . len ( ) { self . rows . push ( Row :: from ( String :: new ( ) , self . syntax ) ) } self . rows [ self . position . cy ] . insert_char ( self . position . cx , c ) ; self . position . cx += 1 ; self . dirty = true ; }
insert a char at the current position
insert a char at the current position
&mut self
c
char