diff --git a/src/Editor.php b/src/Editor.php index a21c093..a53445c 100644 --- a/src/Editor.php +++ b/src/Editor.php @@ -348,6 +348,17 @@ class Editor { } } + protected function rowInsertChar(Row $row, int $at, string $c) + { + if ($at < 0 || $at > $row->size) + { + $at = $row->size; + } + + $row->chars[$at] = $c; + $this->updateRow($row); + } + // ------------------------------------------------------------------------ // ! File I/O // ------------------------------------------------------------------------