From c4f9d679804623471ba884090935057042c65cf1 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Fri, 8 Nov 2019 13:32:31 -0500 Subject: [PATCH] Further simplify Row->update --- src/Row.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Row.php b/src/Row.php index 122f995..8d97d31 100644 --- a/src/Row.php +++ b/src/Row.php @@ -256,8 +256,7 @@ class Row { public function update(): void { - $replacement = str_repeat(' ', KILO_TAB_STOP); - $this->render = str_replace("\t", $replacement, $this->chars); + $this->render = tabs_to_spaces($this->chars); $this->updateSyntax(); }